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

Correct

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

This solution is outdated. To rescore this solution, log in.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = 301;
y_correct = 'uint16';
assert(isequal(findclass(x),y_correct))

                    
2
Pass
 
%%
x = -9999999;
y_correct = 'int32';
assert(isequal(findclass(x),y_correct))

                    
3
Pass
 
%%
x = 5;
y_correct = 'uint8';
assert(isequal(findclass(x),y_correct))

                    
4
Pass
 
%%
x = -100;
y_correct = 'int8';
assert(isequal(findclass(x),y_correct))