Cody

Solution 286779

Submitted on 22 Jul 2013
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
%% s = 'Cl'; y_correct = 17; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

2   Fail
%% s = 'Au'; y_correct = 79; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

3   Fail
%% s = 'Dy'; y_correct = 66; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

4   Fail
%% s = 'O'; y_correct = 8; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

5   Fail
%% s = 'Ge'; y_correct = 32; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

6   Fail
%% s = 'Uut'; y_correct = 113; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

7   Fail
%% s = 'C'; y_correct = 6; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

8   Fail
%% s = 'Xe'; y_correct = 54; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.

9   Fail
%% s = 'Hg'; y_correct = 80; assert(isequal(atomicNumber2(s),y_correct))

Error: Undefined function 'atomicNumber2' for input arguments of type 'char'.