I have {1*1} cell which contains a column matrix with 4455 rows how can i access data in each row?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have {1*1} cell which contains a column matrix with 4455 rows how can i access data in each row?
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 5월 21일
편집: Azzi Abdelmalek
2013년 5월 21일
A{1}{k}
Example
A={{10 20 30 40}}
A{1}{3} % The result is 30
댓글 수: 2
Jan
2013년 5월 21일
The OP has a matrix insie the cell. Then he needs round parenthesis as second indexing:
A = {rand(4455, 1)};
v = A{1}(256)
추가 답변 (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!