📄 size.m
字号:
function theResult = size(self)
% ncrec/size -- Size (dimensions) of an ncrec object.
% size(self) returns the size (dimensions) of
% self, an ncrec object.
% Copyright (C) 1997 Dr. Charles R. Denham, ZYDECO.
% All Rights Reserved.
% Disclosure without explicit written consent from the
% copyright owner does not constitute publication.
% Version of 07-Aug-1997 16:01:38.
% (N.B. We will want to
% return a cell-list of sizes, I think.)
DEADLINE = '01-Jan-1999';
if nargin < 1, help(mfilename), return, end
theNCid = ncid(self);
[theSize] = ncmex('recinq', theNCid);
if length(theSize) < 2 & now > datenum(DEADLINE)
theSize = [theSize 1];
end
if nargout > 0
theResult = theSize;
else
disp(theSize)
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -