Nice!
It's a shock that I didn't know such a function existed
Better than all previous non-cheat solutions :-)
You might wanna check it again ;)
The function 'unique' should probably also be prohibited.
Strictly following the problem statement, this should pass?
This also does the trick :)
Replace NaNs with the number that appears to its left in the row.
2019 Solvers
895 Solvers
find the maximum element of the matrix
349 Solvers
Element by element multiplication of two vectors
269 Solvers
137 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!