getn.m

来自「matlab7.0这本书的源代码」· M 代码 · 共 15 行

M
15
字号
function varargout=getn(H,varargin)
%GETN Get Multiple Object Properties.
% [Prop1,Prop2,...] = GETN(H,PName1,PName2,...) returns the requested
% properties of the scalar handle H in the corresponding output arguments.
%
% For example, [Xlim,Ylim,Xlabel] = GETN(gca,'Xlim','Ylim','Xlabel')
% returns the requested axes properties in like-named output variables.
%
% This simplifies the construct
% [Xlim,Ylim,Xlabel] = deal(get(gca,{'Xlim','Ylim','Xlabel'}))

if max(size(H))~=1 || ~ishandle(H)
   error('Scalar Object Handle Required.')
end
varargout=get(H,varargin);

⌨️ 快捷键说明

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