How to draw 2 different plot on a graph

1 vue (au cours des 30 derniers jours)
Hung Tat Ho
Hung Tat Ho le 29 Mai 2020
Commenté : Hung Tat Ho le 29 Mai 2020
we have two column A and B. so how to draw 2 different plots on a graph?

Réponses (1)

Tommy
Tommy le 29 Mai 2020
Modifié(e) : Tommy le 29 Mai 2020
hold on
or
set(gca, 'NextPlot', 'add')
in between your calls to plot or however you are plotting.
  5 commentaires
Tommy
Tommy le 29 Mai 2020
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 le 29 Mai 2020
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by