This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = magic(3);x(2,[1 3])= NaN;
y_correct = [8 1 6;4 9 2];
assert(isequal(removeNaN(x),y_correct))
|
2 | Pass |
%%
x = [magic(4) ones(4,1)];
x(4,5) = NaN;x(3,2) = Inf;x(3,1)=NaN;
y_correct = x(1:2,:);
assert(isequal(removeNaN(x),y_correct))
|
Check to see if a Sudoku Puzzle is Solved
279 Solvers
Return the first and last character of a string
3455 Solvers
How long is the longest prime diagonal?
338 Solvers
Relative ratio of "1" in binary number
392 Solvers
Is this triangle right-angled?
2875 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!