Problem 42691. Matrix of almost all zeros, except for main diagonal
76.56% Correct | 23.44% Incorrect
Last Solution submitted on Mar 09, 2023
Problem Recent Solvers174
Find all elements less than 0 or greater than 10 and replace them with NaN
Replace NaNs with the number that appears to its left in the row.
Back to Basics - Find no. of elements in a matrix?
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!