Plotting data on same axis as graph created by matlab function
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
Im using the candle matlab function to produce a candlestick chart on stock data. I would also like to plot other analysis data such as moving average, but how do i put it on the same axes? Ive worked out the moving average fine but the matlab function controls the code for producing the graph, and cant seem to find a way of adding other data even though the x-values are the same. Can you help?
Many Thanks Tom
댓글 수: 0
답변 (2개)
Paulo Silva
2011년 4월 9일
%make first chart
hold on
%make second chart
hold on retains the current plot and certain axes properties so that subsequent graphing commands add to the existing graph.
댓글 수: 0
Oleg Komarov
2011년 4월 9일
Look at the solution I gave at http://www.mathworks.com/matlabcentral/answers/1177-plotting-a-normal-graph-with-a-candlestick-graph
댓글 수: 2
Oleg Komarov
2011년 5월 7일
Can you please edit your original post adding the formatted code with the error message?
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!