MATLAB: Call file names one by one from an array

call one by onefor loopstruct array

Hi,
I have the "d" array (31×1 struct) which has file names.
When I do the following in the command prompt:
>> d.name
list all the names stored in d array
Is there a way to call one name at a time since I am planning to use a for loop
For example:
for i=1:length(d)
input_file=[d.name];
end

Best Answer

"one name at a time" &nbsp Replace
input_file=[d.name];
by
input_file = d(i).name;