Filter löschen
Filter löschen

How to index into a multi layer cell?

2 Ansichten (letzte 30 Tage)
liu James
liu James am 14 Dez. 2016
Beantwortet: Antonio Aguirre am 14 Dez. 2016
I have a 1x34 cell name low and within each cell there is a 1079x1 cell. I would like to grab a number from cell 2 of 1x34 and row 100 of the 1079x1 cell. I would have done low{1,2(100)}. But this seems to not work. I've tried low{1,2,100} as well. I'm not sure what to do. Further, I would like to manipulate and pull out sections of the cell such as from row 100-1000 lets say. How to do this?

Akzeptierte Antwort

Antonio Aguirre
Antonio Aguirre am 14 Dez. 2016
In general, you need to index into the cell for accessing the data as follows : low{1,i}{i,1}
For the particular question that you asked : low{1,2}{100,1}
Let me know if you have any questions.

Weitere Antworten (0)

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by