- () parentheses refer to the cells themselves,
- {} curly braces refer to the cell contents.
how to store the matrix value in cell array?
조회 수: 56 (최근 30일)
이전 댓글 표시
채택된 답변
Stephen23
2020년 9월 15일
편집: Stephen23
2020년 9월 15일
If C is a matrix, then you need to use curly braces to access the contents of the cell array T3:
T3 = cell(1,10);
for k1 = 1:n
T3{k1} = C;
end % ^ ^ curly braces
The difference is very simple:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!