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 天)
no

采纳的回答

Walter Roberson
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 CenterFile Exchange 中查找有关 Structures 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by