Cody

Problem 43301. Calculate inverse matrix in m by n matrix

Solution 1947907

Submitted on 25 Sep 2019
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: 2 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 29 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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!