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!