This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 301;
y_correct = 'uint16';
assert(isequal(findclass(x),y_correct))
r =
uint16
|
2 | Pass |
%%
x = -9999999;
y_correct = 'int32';
assert(isequal(findclass(x),y_correct))
r =
int32
|
3 | Fail |
%%
x = 5;
y_correct = 'uint8';
assert(isequal(findclass(x),y_correct))
Error: Assertion failed.
|
4 | Pass |
%%
x = -100;
y_correct = 'int8';
assert(isequal(findclass(x),y_correct))
r =
int8
|
4331 Solvers
Flag largest magnitude swings as they occur
582 Solvers
Calculate the height of an object dropped from the sky
165 Solvers
54 Solvers
122 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!