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 (최근 30일)
이전 댓글 표시
채택된 답변
Walter Roberson
2016년 11월 10일
{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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
