필터 지우기
필터 지우기

getTrend,forcast, and Simulate timeseries data in matlab?

조회 수: 2 (최근 30일)
G Newton
G Newton 2016년 8월 14일
댓글: G Newton 2016년 8월 17일
I have climate data of four different stations of past 30 years i want to predict/forecast this data for next 5 years. This climate data is in data matrix of size 31*4 (30 years and four stations).
I am trying to forecast, getting trend and simulate this model based on this 30-year time series data to next five-year using ar model.
Here is my just effort(not test yet)
data=fineM; %is a matrix of size 31 by 4
for i=1:length(data,2)
mysys(:,jj)=ar(fineM(:,jj),2); %creating a matrix of ar model
end
for j=1:size(data,2)
T(:,j) = getTrend(data(:,i),1); %preparing matrix of gettrend of size 31*4
F(:,j) = forecast(mysys(j),data(j),5); % trying to forcast for next five years
mysimu=sim(mysys(j),data(j)); % trying to simulate
end
I am totally new to matlab, and even confuse with these terms forcast, getTrend,retrend,predict,sim. Any expert please guide me please how can i forcast my values for next five years also make it a simulated model so that i can check my accuracy of model.
  댓글 수: 2
Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 8월 15일
i am not sure about looping
G Newton
G Newton 2016년 8월 17일
dear Muhammad ;
I am totally new to these functions not know what i am doing?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Weather and Atmospheric Science에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by