How to draw 2 different plot on a graph
Mostrar comentarios más antiguos
we have two column A and B. so how to draw 2 different plots on a graph?
Respuestas (1)
hold on
or
set(gca, 'NextPlot', 'add')
in between your calls to plot or however you are plotting.
5 comentarios
Hung Tat Ho
el 29 de Mayo de 2020
Tommy
el 29 de Mayo de 2020
Can you provide all of your code? I'm thinking a bit more context could be useful.
Hung Tat Ho
el 29 de Mayo de 2020
Editada: Hung Tat Ho
el 29 de Mayo de 2020
Tommy
el 29 de Mayo de 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
el 29 de Mayo de 2020
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

