MATLAB Function Reference |
Syntax
n=
nargin n
=
nargin('
fun
') n=
nargout n = nargout('
fun
')
Description
M-file ㄧΑ砰いnargin
㎝ nargout
だㄏノ矗ㄑ肚の肚把计计 M-file ㄧΑ砰nargin
㎝ nargout
だ倒﹚ㄧΑぇ肚の肚把计计狦赣ㄧΑ把计计琌跑笆玥眔把计计琌璽
nargin('
肚 M-file ㄧΑ fun
')
fun
┮肚把计计狦赣ㄧΑ肚把计计琌跑笆玥肚 -1
nargout('
肚 M-file ㄧΑ fun
')
fun
┮肚把计计
Examples
硂絛ㄒ myplot
ㄧΑ场だ祘Α絏赣ㄧΑ肚の肚把计计匡拒┦秸俱 :
function[x0,y0]
=
myplot(fname,lims,npts,angl,subdiv) % MYPLOT
酶籹ㄧΑ瓜 %
MYPLOT(fname,lims,npts,angl,subdiv) %
玡ㄢ肚把计琌ゲ璶 %
逞Τ箇砞
... if
nargin
<
5,
subdiv
=
20;
end if
nargin
<
4,
angl
=
10;
end if
nargin
<
3,
npts
=
25;
end
... if
nargout
==
0
plot(x,y) else
x0
=
x;
y0
=
y; end
See Also
nargchk | nargoutchk |