Cody

Solution 1983648

Submitted on 20 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   Fail
C = 11; x='C' y_correct = 11; assert(isequal(your_fcn_name(x),y_correct))

x = 'C'

Assertion failed.

2   Fail
C = -11; x='C' y_correct = -11; assert(isequal(your_fcn_name(x),y_correct))

x = 'C'

Assertion failed.

3   Fail
x = 0; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

Error using str2num (line 35) Input must be a character vector or string scalar. Error in your_fcn_name (line 2) y = str2num(x); Error in Test3 (line 3) assert(isequal(your_fcn_name(x),y_correct))