Question regarding executing auto-correlation

13 ビュー (過去 30 日間)
chean hau
chean hau 2014 年 2 月 3 日
コメント済み: chean hau 2014 年 2 月 6 日
Hi all,
I have to stationarized my data using auto-correlation to be used in arima models. However, i have trouble getting the codes correct.
data = xlsread('20jun.xlsx');
pv = data; %144 readingfrom 20jun
t= [1:144]; %defined time points
plot(t,pv);
I have 144 data readings, resulting in 144 time point. Any advise will be appreciated. Thanks for the time.
  2 件のコメント
Mischa Kim
Mischa Kim 2014 年 2 月 3 日
What exactly is the problem with your code?
chean hau
chean hau 2014 年 2 月 4 日
編集済み: chean hau 2014 年 2 月 4 日
Hi Mischa,
Thanks for taking the time to reply. The error i obtained is 'Vectors must be the same lengths'. Pardon my raw knowledge regarding matlab, but is it necessary to use an arima model to do acf? Thanks in advance.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2014 年 2 月 4 日
編集済み: Image Analyst 2014 年 2 月 4 日
Before plot, put there lines and tell us what it says
size(t) % Don't use a semicolon
size(pv) % Don't use a semicolon
class(t) % Don't use a semicolon
class(pv) % Don't use a semicolon
And I don't see any autocorrelation going on, just reading data from a workbook and plotting it.
  5 件のコメント
Image Analyst
Image Analyst 2014 年 2 月 5 日
I don't know. I don't have your data. Can't you tell if it works or not? Do you get the expected results?
chean hau
chean hau 2014 年 2 月 6 日
Hi Image analyst,
I think it works. Thank you so much for your advises. You have been a great help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by