how can I generate a random matrix of this type (see photo) with the condition that it is full rank?
Cattura.PNG

 채택된 답변

Stijn Haenen
Stijn Haenen 2019년 11월 12일

1 개 추천

Hi,
Try this one:
T=6;
a=rand(T);
m=tril(a,-1);
matrix=m+m'+eye(T).*rand(T);

댓글 수: 1

massimiliano frasca
massimiliano frasca 2019년 11월 13일
thanks a lot! now I should collect the element form z(0) to z(T-1) in an array.
for example, if T=5, V=[z(0) z(1) z(2) z(3) z(4)
How can I do this?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by