an ar 1 correlation matrix

5 次查看(过去 30 天)
Muhammad Ali Qadar
Muhammad Ali Qadar 2015-10-23
Hello ,
I was trying to construct an ar 1 correlation matrix. I tried to search a lot but there is no proper way. What I did looks like this, not sure if its right
e1=zeros(8,8);
sigma=1;phi=0.22;a=5;
for t=1:8*8
e1(t)=(a+phi*e1(t)+sigma*(randn(1)));
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by