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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by