Problem 1798. 03 - Matrix Variables 2
Make the following variable:

A 9x9 matrix of zeros, but with the following values on the main diagonal:

(Hint: use diag)
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers604
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3028 Solvers
-
Getting the indices from a matrix
678 Solvers
-
16753 Solvers
-
315 Solvers
-
699 Solvers
More from this Author26
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!