Cody

Solution 2137359

Submitted on 22 Feb 2020 by Pauli Huusari
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 = 'MNOP'; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

ans = 13 ans = 14 ans = 15 ans = 16

2   Pass
x = 'MN0P'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

ans = 13 ans = 14 ans = []

3   Pass
x = 'INOUT1NOUT'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

ans = 9 ans = 14 ans = 15 ans = 21 ans = 20 ans = []

4   Pass
x = 'UPANDDOWN'; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

ans = 21 ans = 16 ans = 1 ans = 14 ans = 4 ans = 4 ans = 15 ans = 23 ans = 14

5   Pass
x = 'RUaMATLABPRO'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

ans = 18 ans = 21 ans = []