Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 3 4 5];
c = 'uint32';
y_correct = 'uint32';
assert(strcmp(class(convertto(x,c)),y_correct) && isequal(x,convertto(x,c)))
ans =
1 2 3 4 5
ans =
1 2 3 4 5
|
2 | Pass |
%%
x = [4 7 0 3 2 2];
c = 'int16';
y_correct = 'int16';
assert(strcmp(class(convertto(x,c)),y_correct) && isequal(x,convertto(x,c)))
ans =
4 7 0 3 2 2
ans =
4 7 0 3 2 2
|
785 Solvers
594 Solvers
Matrix with different incremental runs
106 Solvers
Getting the indices from a vector
3206 Solvers
224 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!