How to create this specified matrix?
이전 댓글 표시
Hi all. I have some values from U(1)...to...U(500) , and I need help to create this matrix:

채택된 답변
추가 답변 (2개)
Azzi Abdelmalek
2016년 5월 21일
u=1:10
n=numel(u)
v=repmat(u',1,n)
w=cell2mat(arrayfun(@(x) circshift(v(:,x),[x-1 0]),1:n,'un',0) )
out=tril(w)
Andrei Bobrov
2016년 5월 21일
tril(toeplitz(u))
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!