MATLAB: Syntax help

circulant matrix

temp=randsrc(1,2);
temp=[temp zeros(1,4)];
temp1=transpose(temp);
temp1 =
1
-1
0
0
0
0
I want to create circulant matrix with temp1 as first column… I have a circulant matrix with temp1 as first row :
h1=gallery('circul',temp1)
But I need it to be first column, Pls help me with it

Best Answer

h1 = h1';
Related Question