Problem 43689. Make an identity matrix whose diagonal elements are 1:n
Solution Stats
Problem Comments
-
1 Comment
goc3
on 21 Dec 2016
This problem's title and description were cleaned up and additional test cases were added.
Problem Recent Solvers71
Suggested Problems
-
20494 Solvers
-
Replace multiples of 5 with NaN
390 Solvers
-
Rounding off numbers to n decimals
2344 Solvers
-
Replace Nonzero Numbers with 1
273 Solvers
-
233 Solvers
More from this Author7
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!