Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
cell of matrixes to cell of array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
James Tursa
am 25 Nov. 2015
Please give a short example of your cell of matrices and your desired cell of arrays output.
Antworten (2)
Batool Engineer
am 25 Nov. 2015
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 Kommentare
James Tursa
am 25 Nov. 2015
newC = cell(size(C));
for k=1:numel(C)
M = C{k}';
newC{k} = M(:);
end
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!