How do I create this diagonal matrix?
Show older comments
This is matrix that I have to create, I can see that there's a +5 pattern but I don't know how to add the constant.

Accepted Answer
More Answers (0)
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!