Create a candle chart with non financial data ?

24 ビュー (過去 30 日間)
Teerapong Poltue
Teerapong Poltue 2021 年 2 月 2 日
回答済み: Rishik Ramena 2021 年 2 月 5 日
I got a set of non financial data
data = [1 2 3 4 4 4 7 15 11 13 5 15];
And I would like to plot a candle chart that start at min(data) and stop at max(data) with error bar on the top and bottom of candle with the value of std(data).
How can I do that ?
  1 件のコメント
Adam Danz
Adam Danz 2021 年 2 月 2 日
編集済み: Adam Danz 2021 年 2 月 2 日
candle() with the financial toolbox. I'm not aware of an alternative in Matlab outside of the Financial Toolbox. You can look on the file exchange. What you're describing can also be achieved with a combination of errorbar, patch or rectangle or fill.

サインインしてコメントする。

採用された回答

Rishik Ramena
Rishik Ramena 2021 年 2 月 5 日
To generate a candlestick chart you have to have variables named 'Open', 'High', 'Low', and 'Close' in your data be it a Matrix, a table or a timetable. Have a look here for more info on generating candlestick charts.

その他の回答 (0 件)

カテゴリ

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