Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Generating a definite matrix

1 回表示 (過去 30 日間)
Ishmum Monjur Nilock
Ishmum Monjur Nilock 2019 年 9 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Rik
Rik 2019 年 9 月 12 日
What do you mean? Pasting that into Matlab should already create that matrix.

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 9 月 12 日
tril(repmat(1:4, 4, 1))

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by