Trying to load the entire structure field but only able to get the first element

14 visualizaciones (últimos 30 días)
I have a structure array 147x1 with 5 fields.
Whenever I try
b=folderInfo.bytes
it only returns the first element, in this case 0. Is there a way to load the entire field as an array?
I'm expecting a result
b =
0
0
other number
other number
...
I've also attached a picture of a portion of my structure.

Respuesta aceptada

Image Analyst
Image Analyst el 21 de Jul. de 2018
Try
allBytes = [folderInfo.bytes];

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by