Sometimes MATLAB's error messages can be very cryptic and misleading. Following are examples of error messages which I encountered while trying to solve \(\mathbf{A}x=b\) in least square sense using MATLAB's lsqr function.
%% Error 1
Error using iterapp (line 60)
user supplied function ==>
@(x,transp_flag)transform_X(x,transp_flag, ...)
failed with the following error:
Not enough input arguments.
Error in lsqr (line...