フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Some help with loops

2 ビュー (過去 30 日間)
Robert
Robert 2015 年 3 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have the following code which loads a NetCDF file, flips it around a few times then saves it as a ASCII file
ncload('20030101_Sg.nc')
twodim=squeeze(Sg)
a=rot90(twodim)
b=rot90(a)
final=fliplr(b)
dlmwrite('20030101_Sg.txt',final)
There are 365 of these NetCDF files in the folder and I want to loop this code to get ASCII outputs of all of them. As above I need the ASCII file name to be the same as the NetCDF file name.
Any help would be appreciated, I'm quite new to Matlab.

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by