Asked by Arun Badigannavar
on 7 Dec 2012

How to plot set of values like(x,y),,,,x=1:1:10 ,,,,,y=1:1:10,,,, and (x1,y1),,,x1=:30:1:40,,,,y1=30:1:40,,,,,in a single plot and my plot should plot one by one value,,,, It is something like two vehicles at two different postion and they are moving with step increment of one by one

Answer by Muruganandham Subramanian
on 7 Dec 2012

Accepted answer

plot(x,y,'r*',x1,y1,'b-')

Show 2 older comments

Arun Badigannavar
on 7 Dec 2012

Muruganandham Subramanian
on 7 Dec 2012

If the output values from simulink model is present in **base workspace**, it'll work

Arun Badigannavar
on 7 Dec 2012

I got it,,,assigned the values and plotting it,,,thanks for ur help

Answer by Harshit
on 7 Dec 2012

use hold all after first plot.

Arun Badigannavar
on 7 Dec 2012

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 0 Comments