⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inquire.m

📁 MATLAB中读写、处理科学数据文件格式NETCDF的程序
💻 M
字号:
function theResult = inquire(self)

% netcdf/inquire -- Deep inquiry of a netCDF file.
%  inquire(self) returns self, a netcdf object, after
%   updating its fields with the results of a deep inquiry
%   into all of its dimensions, variables, and attributes.

if nargin < 1, help(mfilename), return, end

result = [];

[ndims, nvars, ngatts, theRecdim, status] = ncmex(id(self));

if status ~= 0
   warning(' ## ' mfilename ' failure.')
   return
end

% Variables.

theVars = cell(nvars, 1);
for theVarid = -1:nvars-1
   theVars{i} = ncvar(id(self), theVarid);
end

self = var(self, theVars);
result = self;

if nargout > 0, theResult = result; end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -