[Scilab-users] Getting netCDF files into Scilab 6.0.1

Rafael Guerra jrafaelbguerra at hotmail.com
Sun Jul 22 11:28:59 CEST 2018


Hi,

You can strip the header rows and save a newfile.
Then use mfscanf as follows:

fid = mopen(newfile);
M = zeros(nrows, ncols);
for k=1:nrows
           M(k,:) = mfscanf(ncols,fid,"%f");
end

Regards,
Rafael




More information about the users mailing list