Cody

Problem 43301. Calculate inverse matrix in m by n matrix

Solution 2963179

Submitted on 18 Sep 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x=(1:10)' y=3*x a=3 assert(abs(reginv(x,y)-a)<0.001)

Error in solution: Line: 3 Column: 6 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
x=(1:10)' y=3*x+2 a=3.2857 assert(abs(reginv(x,y)-a)<0.001)

Error in solution: Line: 3 Column: 6 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

Suggested Problems

More from this Author27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!