Cody

Solution 1979276

Submitted on 16 Oct 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   Pass
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.000000000000000e+00 1.000000000000000e+00 1.500000000000000e+00 -5.000000000000000e-01

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 1 1 0

Assertion failed.