Create matrix with iteration

1 view (last 30 days)
Penglin Cai
Penglin Cai on 9 Jun 2020
Answered: KSSV on 9 Jun 2020
Dear all
How can l create a matrix shown below by iteration?

Answers (1)

KSSV
KSSV on 9 Jun 2020
You need not to use iteration. Read about diag, zeros and ones.

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!