Matlab 保存 nc 文件

Posted by Bend on January 13, 2020
% save nc file
fid = fopen('sphere.nc','w');
for i=1:nsize
    fprintf(fid, 'X%.6f\tZ%.6f\n', cutx(i),cutz(i));
end;
fclose(fid);