Write for loop for 24x1 struct

1 visualización (últimos 30 días)
Lawrence Tom
Lawrence Tom el 1 de Mayo de 2019
Comentada: KSSV el 8 de Mayo de 2019
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

Respuestas (1)

KSSV
KSSV el 1 de Mayo de 2019
y = {fieldnames(:).folder }
  2 comentarios
Lawrence Tom
Lawrence Tom el 7 de Mayo de 2019
That's helpful copying the file but hasn't answered my question.
KSSV
KSSV el 8 de Mayo de 2019
Whats the question?

Iniciar sesión para comentar.

Categorías

Más información sobre Structures en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by