Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 180671

Submitted on 21 Dec 2012 by @bmtran

Correct

74Size
Leading solution size is 59.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = 'm';
y_correct = [6 1];
assert(isequal(encryptt(x),y_correct))

                    
2
Pass
 
%%
x = 'go';
y_correct = [46 3];
assert(isequal(encryptt(x),y_correct))

                    
3
Pass
 
%%
x = 'cody';
y_correct = [2639 99];
assert(isequal(encryptt(x),y_correct))

                    
4
Pass
 
%%
x = 'hydroglycerin';
y_correct = [4937645923746 2616254];
assert(isequal(encryptt(x),y_correct))

                    
5
Pass
 
%%
x = 'antidisestablishmentarianism';
y_correct = [2684347378225474636827426476 13474859120710];
assert(isequal(encryptt(x),y_correct))

                    
6
Pass
 
%%
x = 'there must be an efficient technique';
y_correct = [84373 56 6878 22 23 5 26 2 333424368 13108 832464783 5378];
assert(isequal(encryptt(x),y_correct))