Cody

Solution 1979271

Submitted on 16 Oct 2019 at 17:13
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 2;3 4]; y_correct = [-2.00000 1.00000; 1.50000 -0.50000]; assert(isequal(your_fcn_name(x),y_correct))

y = -2.000000000000002 1.000000000000001 1.500000000000002 -0.500000000000001

Assertion failed.

2   Fail
x = [0 1; 1 1]; y_correct = [-1.0000e+00 1.0000e+00; 1.0000e+00 -1.1102e-16]; assert(isequal(your_fcn_name(x),y_correct))

y = -1.000000000000000 1.000000000000000 1.000000000000000 -0.000000000000000

Assertion failed.

Suggested Problems

More from this Author24