Having an error using pacf function
1 回表示 (過去 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!