Having an error using pacf function

2 views (last 30 days)
LeBron
LeBron on 24 Feb 2013
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')

Answers (1)

Walter Roberson
Walter Roberson on 24 Feb 2013
pacf is not a function in MATLAB. It is a calculated result. See http://www.mathworks.com/help/econ/test-for-autocorrelation.html
  6 Comments
LeBron
LeBron on 25 Feb 2013
Wow so parcorr() worked but its weird how pacf() doesnt work. Thanks a lot for your help
Walter Roberson
Walter Roberson on 25 Feb 2013
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.

Sign in to comment.

Categories

Find more on Performance and Memory in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!