struct2mat(S)

Version 1.0.0.0 (1,06 ko) par Francisco
STRUCT2MAT Converts a structure into a matrix.
833 téléchargements
Mise à jour 6 jan. 2016

Afficher la licence

[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)

Citation pour cette source

Francisco (2026). struct2mat(S) (https://fr.mathworks.com/matlabcentral/fileexchange/54766-struct2mat-s), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0