Cody

Solution 1800106

Submitted on 29 Apr 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; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

y = 1

Assertion failed.

2   Fail
x = [2 0]; y_correct = [1 -1]; assert(isequal(your_fcn_name(x),y_correct))

y = 2 0

Assertion failed.

3   Fail
x = 0:100; y_correct = -50:50; assert(isequal(your_fcn_name(x),y_correct))

y = Columns 1 through 18 0 0.0200 0.0400 0.0600 0.0800 0.1000 0.1200 0.1400 0.1600 0.1800 0.2000 0.2200 0.2400 0.2600 0.2800 0.3000 0.3200 0.3400 Columns 19 through 36 0.3600 0.3800 0.4000 0.4200 0.4400 0.4600 0.4800 0.5000 0.5200 0.5400 0.5600 0.5800 0.6000 0.6200 0.6400 0.6600 0.6800 0.7000 Columns 37 through 54 0.7200 0.7400 0.7600 0.7800 0.8000 0.8200 0.8400 0.8600 0.8800 0.9000 0.9200 0.9400 0.9600 0.9800 1.0000 1.0200 1.0400 1.0600 Columns 55 through 72 1.0800 1.1000 1.1200 1.1400 1.1600 1.1800 1.2000 1.2200 1.2400 1.2600 1.2800 1.3000 1.3200 1.3400 1.3600 1.3800 1.4000 1.4200 Columns 73 through 90 1.4400 1.4600 1.4800 1.5000 1.5200 1.5400 1.5600 1.5800 1.6000 1.6200 1.6400 1.6600 1.6800 1.7000 1.7200 1.7400 1.7600 1.7800 Columns 91 through 101 1.8000 1.8200 1.8400 1.8600 1.8800 1.9000 1.9200 1.9400 1.9600 1.9800 2.0000

Assertion failed.