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!