selecting a specific range in a matrix and cell array
显示 更早的评论
I have a large cell array with many matrices. I want to select row 1 and column 16 which has a matrix table. in that matrix table i want to select row 861. How do I do that?
a{1,16:861}
采纳的回答
更多回答(1 个)
Sean de Wolski
2014-12-23
0 个投票
Just use two lines of code. There's no shame in doing this. And since MATLAB passes implicitly by reference anyway, it won't require a memory copy unless you change something.
2 个评论
AA
2014-12-23
Sean de Wolski
2014-12-23
Start here:
You can index into the cell array to extract its contents with {} or to extract the cell as ().
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!