How to smooth time series?

4 views (last 30 days)
Isleydys Silva
Isleydys Silva on 13 Apr 2014
Commented: nl2605 on 17 Apr 2014
Hello guys,
I'm having this error with tsmovavg, Error using fints/tsmovavg (line 80), I'm trying to smooth the price data corresponding to 30 days, this is the code I have written
price = fints(Date, data); price = price'; plot(price); lag = 30; exponential = tsmovavg(price, 'e', lag, 2); plot(price);
Invalid number of inputs. Please see 'help fints/tsmovavg'
I appreciate any help, thanks guys :)
  1 Comment
nl2605
nl2605 on 17 Apr 2014
isn't the problem that you have transposed price and stored it in price and then used it in tsmovavg? price = price'; ???? store it in some plot_price = price'; and then plot(plot_price);

Sign in to comment.

Answers (0)

Categories

Find more on Financial Toolbox 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!