📄 desc.m
字号:
function status = desc(theItem, howMuch)
% ncitem/desc -- Description of a NetCDF object.
% desc('theFunction') shows help for 'theFunction'.
% desc(theObject) describes theObject itself, but not
% its inherited parts.
% desc(theObject, 'full') describes theObject fully.
% desc(theNonObject, ...) describes theNonObject.
%
% Also see: ncitem/disp, ncitem/display.
% Copyright (C) 1996-7 Dr. Charles R. Denham, ZYDECO.
% All Rights Reserved.
% Disclosure without written consent from the
% copyright owner does not constitute publication.
% Version of 07-Aug-1997 09:43:31.
if nargin < 1, help(mfilename), return, end
if nargin < 2, howMuch = ''; end
theName = inputname(1);
if isstr(theItem)
help(theItem)
elseif isobject(theItem)
disp(' ')
if ~isempty(theName)
disp([' ## Name: ' theName])
end
if isobject(theItem)
disp([' ## Public Class: ' class(theItem)])
s = super(theItem);
while isobject(s)
disp([' ## Public SuperClass: ' class(s)])
s = super(s);
end
disp([' ## Protected Methods:'])
theMethods = methods(class(theItem));
for i = 1:length(theMethods)
if strcmp(class(theItem), theMethods{i})
disp([' ' class(theItem) '/' theMethods{i} '() // Constructor'])
else
disp([' ' class(theItem) '/' theMethods{i} '()'])
end
end
disp([' ## Private Fields:']), disp(struct(theItem))
if strcmp(lower(howMuch), 'full')
if isobject(super(theItem))
disp([' ## Inherited by ' class(theItem) ':'])
describe(super(theItem), 'full')
theItem = super(theItem);
end
end
end
else
disp([' ## Name: ' theName])
disp([' ## Class: ' class(theItem)])
disp([' ## Value:'])
disp(theItem)
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -