what is the error function in matlab?
error( msg , A1,...,An ) displays an error message that contains formatting conversion characters, such as those used with the MATLAB® sprintf function. ... The identifier enables you to distinguish errors and to control what happens when MATLAB encounters the errors.