Info

此问题已关闭。 请重新打开它进行编辑或回答。

Generating a definite matrix

1 次查看(过去 30 天)
Ishmum Monjur Nilock
关闭: 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