convert array vector in matrix
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
D=Sis(i).dailyprof;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1418418/image.png)
for i=1:width(Sis)
D(:,i)=Sis(i).dailyprof;
end
an i get the same result avoid loop loop? i try to use reshape but i can't
0 Commenti
Risposta accettata
DGM
il 24 Giu 2023
Consider the example:
% a struct array with a field of column vectors
S = struct('field1',(1:10).');
S = repmat(S,10,1);
D = horzcat(S.field1) % concatenate all column vectors into one matrix
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!