Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 0./[6 4 0 3 -9];
y_correct = [0 0 1 0 0];
assert(isequal(return_nans(x),y_correct))
y =
1×5 logical array
0 0 1 0 0
|
2 | Pass |
x = [1 1 NaN NaN];
y_correct = [0 0 1 1];
assert(isequal(return_nans(x),y_correct))
y =
1×4 logical array
0 0 1 1
|
3 | Pass |
x =[1 1 NaN NaN; 5,2,3,NaN];
y_correct = [0 0 1 1; 0 0 0 1];
assert(isequal(return_nans(x),y_correct))
y =
2×4 logical array
0 0 1 1
0 0 0 1
|
54267 Solvers
Find the alphabetic word product
2321 Solvers
283 Solvers
Matlab Basics - Create a row vector
277 Solvers
443 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!