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))
ans =
uint16
|
2 | Pass |
%%
x = -9999999;
y_correct = 'int32';
assert(isequal(findclass(x),y_correct))
ans =
int32
|
3 | Pass |
%%
x = 5;
y_correct = 'uint8';
assert(isequal(findclass(x),y_correct))
ans =
uint8
|
4 | Pass |
%%
x = -100;
y_correct = 'int8';
assert(isequal(findclass(x),y_correct))
ans =
int8
|
272 Solvers
199 Solvers
Who knows the last digit of pi?
557 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
268 Solvers
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!