필터 지우기
필터 지우기

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