Matrix define using for loop
Show older comments
How to define the following matrix (penta diagonal) using for loop?

2 Comments
Walter Roberson
on 27 Jul 2020
Why use a for loop when Bruno already showed you a vectorized solution?
mathru
on 27 Jul 2020
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating 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!