I have data workspace 1x617struc 1 field, every row has 1x1 struc with 4 fields, How can I extract the 4th field of data for 617? thanks
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponse acceptée
Walter Roberson
le 10 Nov 2016
{YourStruct.NameOf4thField}
A cell array is needed because the 4th field is not guaranteed to be consistent size or data type.
In the case where the 4th field is a numeric row vector of consistent size, then
vertcat(YourStruct.NameOf4thField)
would give you a 617 x something numeric array
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
