How to plot four variables value in XY graph

조회 수: 4 (최근 30일)
Arun Badigannavar
Arun Badigannavar 2012년 12월 7일
댓글: richa parmar 2019년 8월 31일
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
richa parmar
richa parmar 2019년 8월 31일
how to plot four variables in a single graph on mATLAB

댓글을 달려면 로그인하십시오.

채택된 답변

Muruganandham Subramanian
Muruganandham Subramanian 2012년 12월 7일
plot(x,y,'r*',x1,y1,'b-')
  댓글 수: 5
Muruganandham Subramanian
Muruganandham Subramanian 2012년 12월 7일
편집: Muruganandham Subramanian 2012년 12월 7일
If the output values from simulink model is present in base workspace, it'll work
Arun Badigannavar
Arun Badigannavar 2012년 12월 7일
I got it,,,assigned the values and plotting it,,,thanks for ur help

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Harshit
Harshit 2012년 12월 7일
use hold all after first plot.
  댓글 수: 1
Arun Badigannavar
Arun Badigannavar 2012년 12월 7일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by