フィルターのクリア

How can i plot a graph with different y values for a particular x value?

1 回表示 (過去 30 日間)
Deepak d
Deepak d 2018 年 5 月 11 日
コメント済み: Deepak d 2018 年 5 月 11 日
x=0.2
y=3,5,7

採用された回答

KSSV
KSSV 2018 年 5 月 11 日
x=0.2 ;
y=[3,5,7]
plot(x,y,'*r')
In such cases, you need to use a marker.
  1 件のコメント
Stephan
Stephan 2018 年 5 月 11 日
Hi,
nice to know - i always thought length of x and y have to be equal.
Best regards
Stephan

サインインしてコメントする。

その他の回答 (1 件)

Stephan
Stephan 2018 年 5 月 11 日
編集済み: Stephan 2018 年 5 月 11 日
Hi,
x(1:3) = 0.2;
y = [3 5 7];
plot(x,y, '*', 'color', 'r')
gives you:
Best regards
Stephan

カテゴリ

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