Opening up netcdf in Mac
10 次查看(过去 30 天)
显示 更早的评论
Hi, I am having problems opening up netcdf file in Matlab in Mac. I have no previous problems opening up netcdf file in Windows. But since I started using Mac, I have been having difficulties. I tried opening up the file using the code below:
ncquiet
filename=['../matlab/Motuhou1_Wind_tempUpdate.nc'];
ncdf_object= netcdf(filename,'nowrite');
%getting the variable names
variables = var(ncdf_object);
ncnames(var(ncdf_object))
...............
But error messages came up: ??? Error using ==> mexnc Too many output arguments.
Error in ==> mexcdf53 at 9 [varargout{:}] = feval('mexnc', varargin{:});
Error in ==> ncmex at 139 [varargout{:}] = feval(fcn, varargin{:});
Error in ==> netcdf.open at 20 [theNCid, status] = ncmex('open', name(self), thePermission);
Error in ==> netcdf.netcdf at 431 result = open(result, thePermission);
Error in ==> Motuhou1 at 4 ncdf_object= netcdf(filename,'nowrite');
How do I solve this problem as I am rather new to using matlab in Mac?
Thank you
1 个评论
Ashish Uthama
2011-7-6
Yvonne, does your MATLAB version have any of these functions: http://www.mathworks.com/help/techdoc/ref/netcdf.html (If you do, they ought to work on a Mac with no additional setup)
回答(1 个)
Wendy Fullam
2012-9-17
From Ashish Uthama: Yvonne, does your MATLAB version have any of these functions: http://www.mathworks.com/help/techdoc/ref/netcdf.html (If you do, they ought to work on a Mac with no additional setup)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!