Create matrix with iteration

Dear all
How can l create a matrix shown below by iteration?

Réponses (1)

KSSV
KSSV le 9 Juin 2020

0 votes

You need not to use iteration. Read about diag, zeros and ones.

Produits

Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by