Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Generating a definite matrix

1 visualizzazione (ultimi 30 giorni)
Ishmum Monjur Nilock
Ishmum Monjur Nilock il 12 Set 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hello,
I am unable to find the code of generating the matrix A=[1 0 0 0
1 2 0 0
1 2 3 0
1 2 3 4].
Can anyone please help me finding the right code for finding it?
  1 Commento
Rik
Rik il 12 Set 2019
What do you mean? Pasting that into Matlab should already create that matrix.

Risposte (1)

Walter Roberson
Walter Roberson il 12 Set 2019
tril(repmat(1:4, 4, 1))

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by