在windows7下运行了fvcom-toolbox文件夹下fvcom_prepro里面的前处理程序的example.m。程序可以运行但是在调研write_FVCOM_river.m函数时,里面有个netcdf命令。
% open boundary forcing
nc = netcdf(RiverFile, 'clobber');
nc.type = 'FVCOM RIVER FORCING FILE' ;
nc.title = RiverInfo1;
nc.info = RiverInfo2;
nc.history = 'FILE CREATED using write_river_file.m' ;
运行之后,显示
Undefined function 'mjulian2greg' for input arguments of type 'double'.
Error in write_FVCOM_river (line 57)
[year,month,day,hour,mint,sec] = mjulian2greg(time(1));
Error in example_FVCOM_river (line 45)
write_FVCOM_river(RiverFile,RiverName,nRivnodes,time,flux,temp,salt,RiverInfo1,RiverInfo2)
Error in example (line 85)
example_FVCOM_river()
即没有netcdf命令。我也安装了netcdf工具。在matlab命令窗口输入help netcdf,可以显示各个netcdf命令的介绍。
是不是netcdf()这个命令在windows里面没有啊?
你理解错了,保存原因是找不到mjulian2greg.m