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

1 次查看(过去 30 天)
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
编辑: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 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