structfun to read the filenames
Ältere Kommentare anzeigen
F=dir('*.nc')
for ii=1:length(F)
case_name{ii,1}=F(ii).name;
end
Can we write the above code without using loop. I have tried with strutfun, but fails to get the required result.
1 Kommentar
Stephen23
am 28 Aug. 2018
"Can we write the above code without using loop"
Of course, just use a comma-separated list:
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Assembly finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!