How to obtain data from elements in cell arrays
1 回表示 (過去 30 日間)
古いコメントを表示
I have a cell array A that is a 1x1600 cell.
Each element in the cell has a 2500x3 array.
I need to take the second column of each element as use it in my calculation.
Using A{2} I get the whole second 2500x3 array. What line of code should I write to retrieve only the second column of this 2300x3 array.
Basically I need the (:,2).
I hope I was clear enough.
I am new to cell arrays, would really appreciate help
0 件のコメント
採用された回答
Geoff Hayes
2019 年 6 月 21 日
Hans123 - try doing
A{2}(:,2)
to get the second column of the second element of A.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!