Write for loop for 24x1 struct

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 日

0 投票

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?

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

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

リリース

R2018b

質問済み:

2019 年 5 月 1 日

コメント済み:

2019 年 5 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by