How to extract value from matrix in a cell array?

2 Ansichten (letzte 30 Tage)
Xuan He
Xuan He am 16 Jun. 2021
Beantwortet: Scott MacKenzie am 16 Jun. 2021
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.

Akzeptierte Antwort

Scott MacKenzie
Scott MacKenzie am 16 Jun. 2021
>> cell{1}(1,3)
ans =
5

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by