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

10 次查看(过去 30 天)
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.

采纳的回答

Image Analyst
Image Analyst 2018-7-21
Try
allBytes = [folderInfo.bytes];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by