structfun to read the filenames
古いコメントを表示
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 件のコメント
Stephen23
2018 年 8 月 28 日
"Can we write the above code without using loop"
Of course, just use a comma-separated list:
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Assembly についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!