MATLAB Cody - MATLAB Central

Problem 43689. Make an identity matrix whose diagonal elements are 1:n

Difficulty:Rate

Solution 1691916

Submitted on 13 Dec 2018 by HH
  • Size: 9
  • This is the leading solution.
This solution is locked. To view this solution, you need to solve the problem first.

Suggested Problems

More from this Author7

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page