How to create this specified matrix?
Ältere Kommentare anzeigen
Hi all. I have some values from U(1)...to...U(500) , and I need help to create this matrix:

Akzeptierte Antwort
Weitere Antworten (2)
Azzi Abdelmalek
am 21 Mai 2016
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
am 21 Mai 2016
tril(toeplitz(u))
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!