Plot a Time Serie of the price of a share

I have to make the graph of a time series of prices of a share. The line should be red when the price goes below the average of the price, black when it goes above average. how can I do? thanks

Answers (1)

You can use time Series Objects to plot time series data. Please refer to the documentation at the following page:

Asked:

on 30 May 2015

Answered:

on 4 Jun 2015

Community Treasure Hunt

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

Start Hunting!