Cody

Solution 588116

Submitted on 25 Feb 2015 by goc3
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 = 'X= A1 + A2*(Y1 + A3*Y123) ;' ; y_correct = {'Y1', 'Y123'} ; assert(isequal(your_fcn_name(x),y_correct))

pos = 13 21 pos2 = 1 3 4 6 7 8 9 11 12 15 16 17 18 20 25 26

2   Pass
%% x= 'X= A + B*Y1*exp( C + D*Y12**2)' ; y_correct = {'Y1', 'Y12'} ; assert(isequal(your_fcn_name(x),y_correct))

pos = 10 24 pos2 = Columns 1 through 16 1 3 4 5 6 7 8 9 12 13 14 15 16 17 18 19 Columns 17 through 23 20 21 22 23 27 28 30

3   Pass
%% x= 'X= A + B*log( Y1 + 2) ; Z= atan( C + D*Y3*exp( C + D*Y12**2)' ; y_correct = {'Y1', 'Y12', 'Y3'} ; assert(isequal(your_fcn_name(x),y_correct))

pos = 15 40 54 pos2 = Columns 1 through 16 1 3 4 5 6 7 8 9 10 11 12 13 14 17 18 19 Columns 17 through 32 21 22 24 25 27 28 29 30 31 32 33 34 35 36 37 38 Columns 33 through 48 39 42 43 44 45 46 47 48 49 50 51 52 53 57 58 60

Suggested Problems