필터 지우기
필터 지우기

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