How to draw 2 different plot on a graph
조회 수: 1 (최근 30일)
이전 댓글 표시
we have two column A and B. so how to draw 2 different plots on a graph?
댓글 수: 0
답변 (1개)
Tommy
2020년 5월 29일
편집: Tommy
2020년 5월 29일
hold on
or
set(gca, 'NextPlot', 'add')
in between your calls to plot or however you are plotting.
댓글 수: 5
Tommy
2020년 5월 29일
Ok thank you. What are you hoping the plot will look like? Your vector is so long that it is impossible to see any of the background which would make it easier to see the actual values being plotted. Similar to the following:
plot(rand(1000000,1))
Do you no longer have two columns to plot?
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!