How to create a list of netcdf files each with different name?

1 回表示 (過去 30 日間)
Lavnish Gupta
Lavnish Gupta 2018 年 6 月 8 日
コメント済み: Lavnish Gupta 2018 年 6 月 11 日
I have to create a long list of netcdf files each with a different name all in once. How can achieve that instead of doing for each file seperately?
  3 件のコメント
Lavnish Gupta
Lavnish Gupta 2018 年 6 月 11 日
I can't figure out to store characters for name of files. Instead of righting them by hand, how can make a loop to give them name automatically?
Stephen23
Stephen23 2018 年 6 月 11 日
@Lavnish Gupta: how to obtain filenames from a directory or generate filenames is explained in the MATLAB documentation:

サインインしてコメントする。

採用された回答

KSSV
KSSV 2018 年 6 月 11 日
for i = 1:10
filename = ['myfile',num2str(i),'.nc']
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by