内存不足。可能的原因是程序内存在无限递归。
出错 netcdf.open (line 63)
[varargout{:}] = netcdf.open(filename, varargin{1} );
代码如下:
switch nargin
case 1
[varargout{:}] = netcdf.open(filename, 'NOWRITE' );
case 2
[varargout{:}] = netcdf.open(filename, varargin{1} );
case 3
[varargout{:}] = netcdf.open(filename, varargin{1}, varargin{2} );
end