Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Generating a definite matrix

1 visualización (últimos 30 días)
Ishmum Monjur Nilock
Ishmum Monjur Nilock el 12 de Sept. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentario
Rik
Rik el 12 de Sept. de 2019
What do you mean? Pasting that into Matlab should already create that matrix.

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Sept. de 2019
tril(repmat(1:4, 4, 1))

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by