How to extract a field from a structure?
Mostrar comentarios más antiguos
I want to extract an entire field from structures with multiple fields and store it in a vector:

vector = S.(sample)
only returns me row 1

vector = S(2).data
This would return me the second position but when I try to extract all the data
vector = S.data
or
vector = S(:).data
I still get only 24x250x50 double, and not all the data column.
Thank you!
1 comentario
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!