cell of matrixes to cell of array
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi,
I need your help in solving the following problem:
How can I convert a cell of matrixes to cell of arrays?
As an example, refer to the following image:

Thanks in advance.
댓글 수: 1
James Tursa
2015년 11월 25일
Please give a short example of your cell of matrices and your desired cell of arrays output.
답변 (2개)
Batool Engineer
2015년 11월 25일
0 개 추천
Try this:
clc
c1=[1,2,3;1,2,3;1,2,3]
c2=[4,5,6;4,5,6;4,5,6]
newc1=reshape(c1,9,1)
newc2=reshape(c2,9,1)
댓글 수: 0
James Tursa
2015년 11월 25일
newC = cell(size(C));
for k=1:numel(C)
M = C{k}';
newC{k} = M(:);
end
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!