28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

error(nargchk(2, 4, nargin, 'struct'))<br />

nargchk<br />

If nargchk detects no error, it returns an empty string or structure. When<br />

nargchk is used with the error function, as shown here, this empty string or<br />

structure is passed as an input to error. When error receives an empty string<br />

or structure, it simply returns and no error is generated.<br />

Examples Given the function foo,<br />

function f = foo(x, y, z)<br />

error(nargchk(2, 3, nargin))<br />

Then typing foo(1) produces<br />

Not enough input arguments.<br />

See Also nargoutchk, nargin, nargout, varargin, varargout, error<br />

2-1513

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!