Create matrix with iteration

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.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Release

R2019b

Asked:

on 9 Jun 2020

Answered:

on 9 Jun 2020

Community Treasure Hunt

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

Start Hunting!