MATLAB: Which code should I use to stop a finction for a certain condition

code for stopping a functionstopping execution of a function file

out=finalfx(p) is the function, and I want if p is not a number, then stop the file.the code for p is not numeric is isnumeric(p)==o, but what is the code for stopping the function?

Best Answer

return, keyboard, error,...
are some of the commands that you could use.