Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
P= 100000;
old_rate=10.25%
new_rate=10.00%
y_correct = 250;
assert(isequal(saving(P,old_rate,new_rate),y_correct))
old_rate =
10.2500
new_rate =
10
|
2 | Pass |
P= 500000;
old_rate=10.25%
new_rate=10.00%
y_correct = 1250;
assert(isequal(saving(P,old_rate,new_rate),y_correct))
old_rate =
10.2500
new_rate =
10
|
3 | Pass |
P= 500000;
old_rate=10.00%
new_rate=9.75%
y_correct = 1250;
assert(isequal(saving(P,old_rate,new_rate),y_correct))
old_rate =
10
new_rate =
9.7500
|
Return the largest number that is adjacent to a zero
3749 Solvers
Find all elements less than 0 or greater than 10 and replace them with NaN
13047 Solvers
351 Solvers
224 Solvers
353 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!