Really, you should have a link between what directions you're looking, looking up and backwards aren't technically a pair, should really be look up/down or forward/back.
Replace NaNs with the number that appears to its left in the row.
2057 Solvers
314 Solvers
Magic is simple (for beginners)
3239 Solvers
Switch matrix to a column vector
266 Solvers
526 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!