Generating for loop for toeplitz for Q order analysis.
Show older comments
b = toeplitz(x,[x(1) zeros(1,Q)])\y;
I have a toeplitz matrix that I want to write a loop for Q=(1:150).
any ideas?
1 Comment
Andrei Bobrov
on 20 Feb 2013
Edited: Andrei Bobrov
on 20 Feb 2013
That such x, y.
Answers (1)
Andrei Bobrov
on 20 Feb 2013
Edited: Andrei Bobrov
on 20 Feb 2013
b{150} = toeplitz(x,[x(1) zeros(1,150)])\y; % THAT SUCH x, y
for jj = 1:150
b{jj} = b{end}(:,1:jj);
end
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!