what is the meaning of this code
조회 수: 1 (최근 30일)
이전 댓글 표시
for i=1:1:n
M(:,i)=ca{i}(:);
end
댓글 수: 0
채택된 답변
Walter Roberson
2021년 3월 20일
ca is a cell array. The first n entries of the cell array are to be reshaped into vectors and stored as columns of M. You would get an error if the number of elements in each entry is not the same.
In some cases, the code could be replaced with a call to cell2mat(), depending on what the shape of the entries is.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!