Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
d = 1;
n=2;
m=2;
y_correct = 0.25;
assert(isequal(your_fcn_name(d,n,m),y_correct))
y =
0.2500
|
2 | Pass |
d = 1;
n=1;
m=1;
y_correct = 0;
assert(isequal(your_fcn_name(d,n,m),y_correct))
y =
0
|
3 | Pass |
d = 1;
n=3;
m=4;
y_correct = 0.5;
assert(isequal(your_fcn_name(d,n,m),y_correct))
y =
0.5000
|
4 | Fail |
d = 2;
n=1;
m=1;
y_correct = 0;
assert(isequal(your_fcn_name(d,n,m),y_correct))
y =
1
|
5 | Pass |
d = 0.5;
n=2;
m=3;
y_correct = 0.625;
assert(isequal(your_fcn_name(d,n,m),y_correct))
y =
0.6250
|
6 | Fail |
d = 2;
n=1;
m=4;
y_correct = 0;
assert(isequal(your_fcn_name(d,n,m),y_correct))
y =
-0.5000
|
Convert a numerical matrix into a cell array of strings
455 Solvers
Remove the two elements next to NaN value
411 Solvers
Split a string into chunks of specified length
475 Solvers
489 Solvers
Implement a bubble sort technique and output the number of swaps required
153 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!