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

1 vue (au cours des 30 derniers jours)
Lavnish Gupta
Lavnish Gupta le 8 Juin 2018
Commenté : Lavnish Gupta le 11 Juin 2018
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 commentaires
Lavnish Gupta
Lavnish Gupta le 11 Juin 2018
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 le 11 Juin 2018
@Lavnish Gupta: how to obtain filenames from a directory or generate filenames is explained in the MATLAB documentation:

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 11 Juin 2018
for i = 1:10
filename = ['myfile',num2str(i),'.nc']
end

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by