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!