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 Center および File Exchange2-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