Info
この質問は閉じられています。 編集または回答するには再度開いてください。
extract especific part of a cell
3 ビュー (過去 30 日間)
古いコメントを表示
I have a 1*10 cell data, say my_cell. Also I have a new index set ind=[2,4,5]. I only need these elements of my_cell, i.e. my_cell{2}, my_cell{4}, my_cell{5}, and save them in a new 1*3 cell, my_cell_new. I used my_cell{ind}, but it returns a different data type (an structure). How can I extract this indices of my_cell with out using for loop?
2 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!