how to use arma to predict stock price

I have a time serie (stock price), t=t1 t2 ...... t100. I suppose it's an arma(2,0). I tried ; P=iddata(t); m=armax(P,[2 0]); p=predict(m,P,1); data=get(p); but the data I got is just the same as t, it's NOT prediction,It is repeating. I am using Matlab 2010b, there is no function 'forecast' in my matlab,just predict.Could anyone tell me how to do the FORWARD PREDICTION? thanks!!

Answers (0)

Categories

Asked:

on 1 Jul 2014

Community Treasure Hunt

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

Start Hunting!