How to extract value from matrix in a cell array?

조회 수: 1 (최근 30일)
Xuan He
Xuan He 2021년 6월 16일
답변: Scott MacKenzie 2021년 6월 16일
A=[1 3 5;3 9 2;11 8 2];
B=[1 2 3 4 5]
C=[6 7 8 9]
cell={A,B,C}
How would I extract 5 from A inside the call array? I understand that I can extract A as a whole with cell{1}, but I don't know how to go any further than that.
  댓글 수: 1
Xuan He
Xuan He 2021년 6월 16일
NVM I figured it out I did it with cell{1}(1,3)

댓글을 달려면 로그인하십시오.

채택된 답변

Scott MacKenzie
Scott MacKenzie 2021년 6월 16일
>> cell{1}(1,3)
ans =
5

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by