At a minimum, you should make this problem variable. For example, find the element at the ith row and jth column and define i and j in the test cases, which are passed along with the function.
Replace NaNs with the number that appears to its left in the row.
2022 Solvers
278 Solvers
487 Solvers
Matlab Basics II - Max & Index of Max
188 Solvers
293 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!