stock graph with error bars?

1 回表示 (過去 30 日間)
John Jamison
John Jamison 2017 年 2 月 8 日
回答済み: Jayaram Theegala 2017 年 2 月 17 日
HI everyone.
I am trying to replicate this graph using matlab.
As of now, I have the data to use, and have two functions indexed (the high price and low price, and volume), but I am having trouble creating the graph below with some error bars.
How do I replicate this for the error bars?
Thanks

回答 (1 件)

Jayaram Theegala
Jayaram Theegala 2017 年 2 月 17 日
The "highlow" function generates the kind of graph you are looking for. Although it takes 'high', 'low', 'close' and 'open' as arguments, you can pass your 'error' bar values. For more information about this function click on the following URL:
If you want to create multiple plots in the same window, as shown by the graph in your question, you can use the "subplot" function:

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by