Plotting data on same axis as graph created by matlab function
古いコメントを表示
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
回答 (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.
Oleg Komarov
2011 年 4 月 9 日
0 投票
Look at the solution I gave at http://www.mathworks.com/matlabcentral/answers/1177-plotting-a-normal-graph-with-a-candlestick-graph
2 件のコメント
Tom Pearce
2011 年 5 月 7 日
Oleg Komarov
2011 年 5 月 7 日
Can you please edit your original post adding the formatted code with the error message?
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!