Write for loop for 24x1 struct

조회 수: 3 (최근 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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by