source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/qtfm/test/check.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 415 bytes
Line 
1function check(L, E)
2% Test function to check a logical condition L, and output an error
3% message from the string in the parameter E if false.
4
5% Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan.
6% See the file : Copyright.m for further details.
7
8error(nargchk(2, 2, nargin)), error(nargoutchk(0, 0, nargout))
9
10if ~islogical(L)
11    error('First parameter must be logical.');
12end
13
14if ~L
15    error(E);
16end
Note: See TracBrowser for help on using the repository browser.