struct2mat(S)

STRUCT2MAT Converts a structure into a matrix.
812 download
Aggiornato 6 gen 2016

Visualizza la licenza

[X,n]= STRUCT2MAT(S) converts a structre S into a numeric matrix X. The
contents of each *numeric* field of S (either a vector or a matrix) will
form 1 column of X. Fieldnames are returned in cell array 'n'. If the
fields of S aren't of the same length, the columns of X will be padded
with NaN.
Example:
s= struct('a',['string of letters'],'b',[1 2; 3 4],'c',[1 2 3 4 5 6 7 8 9])
[x,n]= struct2mat(s)

Cita come

Francisco (2024). struct2mat(S) (https://www.mathworks.com/matlabcentral/fileexchange/54766-struct2mat-s), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2012b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Matrices and Arrays in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0