How to plot four variables value in XY graph

4 Ansichten (letzte 30 Tage)
Arun Badigannavar
Arun Badigannavar am 7 Dez. 2012
Kommentiert: richa parmar am 31 Aug. 2019
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
  1 Kommentar
richa parmar
richa parmar am 31 Aug. 2019
how to plot four variables in a single graph on mATLAB

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Muruganandham Subramanian
Muruganandham Subramanian am 7 Dez. 2012
plot(x,y,'r*',x1,y1,'b-')
  5 Kommentare
Muruganandham Subramanian
Muruganandham Subramanian am 7 Dez. 2012
Bearbeitet: Muruganandham Subramanian am 7 Dez. 2012
If the output values from simulink model is present in base workspace, it'll work
Arun Badigannavar
Arun Badigannavar am 7 Dez. 2012
I got it,,,assigned the values and plotting it,,,thanks for ur help

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Harshit
Harshit am 7 Dez. 2012
use hold all after first plot.
  1 Kommentar
Arun Badigannavar
Arun Badigannavar am 7 Dez. 2012
for these given x values it works,,,but i have these four variables values coming from simulink models,,,so can i plot simulink model values step by step

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by