Having an error using pacf function
2 次查看(过去 30 天)
显示 更早的评论
Heres my code:
%code
clear all
clc
w=randn(10000,1);
num=[1, -1, 0.25];
y=filter(1,num,w);
pr=pacf(y,20,0);
stem(pr)
title('PACF of an AR(2) Process')
0 个评论
回答(1 个)
Walter Roberson
2013-2-24
pacf is not a function in MATLAB. It is a calculated result. See http://www.mathworks.com/help/econ/test-for-autocorrelation.html
6 个评论
Walter Roberson
2013-2-25
There is no pacf() function in MATLAB or any of the toolboxes. You might perhaps have found a pacf() function somewhere else. pacf is returned by parcorr() if you assign it to a variable.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Performance and Memory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!