Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 0;
assert(isequal(add_persistence(x),y_correct))
|
2 | Pass |
x=18;
y_correct = 1;
assert(isequal(add_persistence(x),y_correct))
ans =
1
|
3 | Pass |
x=2718;
y_correct = 2;
assert(isequal(add_persistence(x),y_correct))
ans =
1
ans =
2
|
4 | Pass |
x=199;
y_correct = 3;
assert(isequal(add_persistence(x),y_correct))
ans =
1
ans =
2
ans =
3
|
5 | Pass |
x=100;
y_correct = 1;
assert(isequal(add_persistence(x),y_correct))
ans =
1
|
Swap the first and last columns
12411 Solvers
2183 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
Set the array elements whose value is 13 to 0
936 Solvers
07 - Common functions and indexing 5
314 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!