Generating for loop for toeplitz for Q order analysis.
显示 更早的评论
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 个评论
Andrei Bobrov
2013-2-20
编辑:Andrei Bobrov
2013-2-20
That such x, y.
回答(1 个)
Andrei Bobrov
2013-2-20
编辑:Andrei Bobrov
2013-2-20
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
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!