function LS_solution(n,A,Ab) %UNTITLED5 Summary of this function goes here % Detailed explanation goes here if rank (A) == rank(Ab) && rank(A)==n disp("The system Ax=b is consistent and it has a unique solution") elseif rank(A) < rank(Ab) && rank(A) < n disp("The system Ax=b is consistent and it has infinitely many solutions") else disp("The system Ax=b is inconsistent and it has no solutions") end Not enough input arguments. Error in LS_solution (line 4) if rank (A) == rank(Ab) && rank(A)==n Published with MATLAB® R2022a 1