How to draw 2 different plot on a graph

2 views (last 30 days)
Hung Tat Ho
Hung Tat Ho on 29 May 2020
Commented: Hung Tat Ho on 29 May 2020
we have two column A and B. so how to draw 2 different plots on a graph?

Answers (1)

Tommy
Tommy on 29 May 2020
Edited: Tommy on 29 May 2020
hold on
or
set(gca, 'NextPlot', 'add')
in between your calls to plot or however you are plotting.
  5 Comments
Hung Tat Ho
Hung Tat Ho on 29 May 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.

Sign in to comment.

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!