A=[1 2 3; 5 7 11;13 17 23] b=[1;2;3] % The answer from LUsolve and A\b must be the same..... sprintf('\nThe output from your code is\n') LUsolve(A, b) sprintf('\nThe right answer is\n' ) A\b