Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
vec = [2 4 9 2];
y_correct = 2492;
assert(isequal(digits2Number(vec),y_correct))
out =
2492
|
2 | Pass |
vec = [3 2]';
y_correct = 32;
assert(isequal(digits2Number(vec),y_correct))
out =
32
|
3 | Pass |
vec = [0 1 3 8 9 0];
y_correct = 13890;
assert(isequal(digits2Number(vec),y_correct))
out =
13890
|
4 | Pass |
vec = [0 0 9 8 2];
y_correct = 982;
assert(isequal(digits2Number(vec),y_correct))
out =
982
|
Find the numeric mean of the prime numbers in a matrix.
6781 Solvers
Getting the absolute index from a matrix
211 Solvers
365 Solvers
530 Solvers
321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!