I made some function file that plot x versus y with extrema max min etc... I need to find command that will stop program if there is not enough input parameters. First input paremeter is "x" and second "y", and there is few more input parameters but they arent important now.
if nargin <2 || isempty(x0)
disp('Must enter two input parameters for plot.')
Program will display message, but what I have to do to make program stop if there arent at least 2 input parameters?