error('text')
error('text') displays the text in the quoted string and causes an error message to return to the keyboard.
error provides an error return from M-files.
function foo(x,y)if nargin ~= 2error('Wrong number of input arguments')end
break,disp,return
(c) Copyright 1994 by The MathWorks, Inc.