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?

回答(1 个)

Tommy
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
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?
Hung Tat Ho
Hung Tat Ho 2020-5-29
Hi. i have two columns with too much raws as each column and i want the plot look like as below, it included two different plots in one graph.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by