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 件のコメント
Ni Putu Dewi Nurmalasari
Ni Putu Dewi Nurmalasari 2016 年 11 月 10 日
</matlabcentral/answers/uploaded_files/63030/data.jpg> Hi Robert, I cannot quite figure out the code that works. so i post the data i have, the 4th data always has 1 column but the row is changing. Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by