Create a candle chart with non financial data ?

조회 수: 17 (최근 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 CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by