MATLAB Function Reference |
Syntax
msg = nargoutchk(low,high,n)
Description
msg = nargoutchk(low,high,n)
讽 n
ぃ low
㎝ high
絛瞅ず肚続讽岿粇癟狦肚把计计﹚絛瞅ず玥 nargoutchk
肚痻皚
Examples
眤ㄏノ nargoutchk
ㄓ浪琩 M-file 砆㊣琌Τ砆タ絋计ヘ肚把计硂絛ㄒㄏノ nargout
ㄓ眔赣ㄧΑ砆㊣砆肚把计计硂ㄧΑ箇戳穦砆ㄢ┪肚把计狦ウ⊿Τ砆肚把计┪肚把计禬筁玥 nargoutchk
穦肚岿粇癟
function [s,varargout] = mysize(x) msg = nargoutchk(1,3,nargout); if isempty(msg) nout = max(nargout,1)-1; s = size(x); for i=1:nout, varargout(i) = {s(i)}; end else disp(msg) end
See Also
inputname
, nargchk
, nargin
, nargout
, varargout
nargin, nargout | nchoosek |