source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/qtfm/test/check.m
Last change on this file was 37, checked in by , 15 years ago | |
---|---|
File size: 415 bytes |
Line | |
---|---|
1 | function 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 | |
8 | error(nargchk(2, 2, nargin)), error(nargoutchk(0, 0, nargout)) |
9 | |
10 | if ~islogical(L) |
11 | error('First parameter must be logical.'); |
12 | end |
13 | |
14 | if ~L |
15 | error(E); |
16 | end |
Note: See TracBrowser
for help on using the repository browser.