Write for loop for 24x1 struct

1 回表示 (過去 30 日間)
Lawrence Tom
Lawrence Tom 2019 年 5 月 1 日
コメント済み: KSSV 2019 年 5 月 8 日
Hi,
I need help a writing a for loop to extract and read in a format from a field in a struct array. The struct is 24x1 and the field I want to extract from has 17 or more in it. I have:
fieldnames = dir ('fieldnamessource');
y = fieldnames.folder %% folder contains 24 files

回答 (1 件)

KSSV
KSSV 2019 年 5 月 1 日
y = {fieldnames(:).folder }
  2 件のコメント
Lawrence Tom
Lawrence Tom 2019 年 5 月 7 日
That's helpful copying the file but hasn't answered my question.
KSSV
KSSV 2019 年 5 月 8 日
Whats the question?

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

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by