How to create a circulant matrix column wise?
Mostra commenti meno recenti
I want to create M x L circulant matrix column wise,where M=16 and L=20.
Risposta accettata
Più risposte (2)
KSSV
il 3 Nov 2020
0 voti
You can refer this fileexchange: https://in.mathworks.com/matlabcentral/fileexchange/22858-circulant-matrix
2 Commenti
ANJANA K P
il 3 Nov 2020
Read about Circshift.
m = 16 ; n = 20 ;
r = rand(m,1) ;
iwant = zeros(m,n) ;
iwant(:,1) = r ;
for i = 2:n
iwant(:,i) = circshift(iwant(:,i-1),1) ;
end
Bruno Luong
il 3 Nov 2020
col = rand(16,1) % your 1-column vector
A = toeplitz(col,col(mod((1:20)-1,end)+1))
Categorie
Scopri di più su Elementary Math in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!