フィルターのクリア

Is there a way to extract specific fields from a structure ?

2 ビュー (過去 30 日間)
laith Farhan
laith Farhan 2018 年 7 月 11 日
コメント済み: laith Farhan 2018 年 7 月 11 日
Dear all,
I have data as struct , How can I extract the E field into a sperate array? Please see the attachment picture.
I've tried this, but it does not work? ss1(:,rnd)=SN.E; ss1: new array to save the parameter, length (100 x 100) rnd: is a loop from 1 - 100 SN.E: my data that i want to take it in each round.

採用された回答

Guillaume
Guillaume 2018 年 7 月 11 日
ss1(:, rnd) = [SN.E];
% or
ss1(:, rnd) = vertcat(SN.E);
  1 件のコメント
laith Farhan
laith Farhan 2018 年 7 月 11 日
Thanks a lot Guillaume, that really helpful . thanks again

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

その他の回答 (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