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 133333

Submitted on 31 Aug 2012 by Vitaly Lavrukhin

Correct

31Size
Leading solution size is 18.
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
 
%%
n = 1;
Title_correct = 'Times 2 - START HERE';
assert(strcmp(Cody_Title(n),Title_correct))
ans =
Times 2 - START HERE
2
Pass
 
%%
n = 2;
Title_correct = 'Make the vector [1 2 3 4 5 6 7 8 9 10]';
assert(strcmp(Cody_Title(n),Title_correct))
ans =
Make the vector [1 2 3 4 5 6 7 8 9 10]
3
Pass
 
%%
n = 110;
Title_correct = 'Make an N-dimensional Multiplication Table';
% This problem hurts my head
assert(strcmp(Cody_Title(n),Title_correct))
ans =
Make an N-dimensional Multiplication Table
4
Pass
 
%%
n = 808;
Title_correct = 'Hamming Weight - Fast';
assert(strcmp(Cody_Title(n),Title_correct))
ans =
Hamming Weight - Fast