How to plot four variables value in XY graph
2 views (last 30 days)
Show older comments
Arun Badigannavar
on 7 Dec 2012
Commented: richa parmar
on 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 Comment
Accepted Answer
Muruganandham Subramanian
on 7 Dec 2012
plot(x,y,'r*',x1,y1,'b-')
5 Comments
Muruganandham Subramanian
on 7 Dec 2012
Edited: Muruganandham Subramanian
on 7 Dec 2012
If the output values from simulink model is present in base workspace, it'll work
More Answers (1)
See Also
Categories
Find more on Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!