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

Réponses (1)

KSSV
KSSV le 1 Mai 2019

0 votes

y = {fieldnames(:).folder }

2 commentaires

Lawrence Tom
Lawrence Tom le 7 Mai 2019
That's helpful copying the file but hasn't answered my question.
KSSV
KSSV le 8 Mai 2019
Whats the question?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Produits

Version

R2018b

Commenté :

le 8 Mai 2019

Community Treasure Hunt

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

Start Hunting!

Translated by