Create matrix with iteration
Show older comments
Dear all
How can l create a matrix shown below by iteration?

1 Comment
madhan ravi
on 9 Jun 2020
And what did you do for you homework?
Answers (1)
KSSV
on 9 Jun 2020
0 votes
You need not to use iteration. Read about diag, zeros and ones.
Categories
Find more on Logical 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!