Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Generating a definite matrix

조회 수: 3 (최근 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