n=5;
h=[1;2;3;4];
x = [zeros(1,n) randn(1,n) zeros(1,n)];
t(1,:) = [x(n+1:-1:(length(h)-1))];
for k=2:n
t(k,:) = [x(n+k:-1:(length(h)-1))];
end
Is there something wrong in the for loop? as my 1st iteration had no problem creating my row vector but when it comes in the for loop i could seem it make the loop run and the error msg i get is 'Subscripted assignment dimension mismatch.' I can't seem to find the mistake
For my case my final output i am should get is as follows
[x6 x5 x4 x3; x7 x6 x5 x4; x8 x7 x6 x5;x9 x8 x7 x6;x10 x9 x8 x7;x11 x10 x9 x8]