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

5 visualizzazioni (ultimi 30 giorni)
x=0.2
y=3,5,7

Risposta accettata

KSSV
KSSV il 11 Mag 2018
x=0.2 ;
y=[3,5,7]
plot(x,y,'*r')
In such cases, you need to use a marker.

Più risposte (1)

Stephan
Stephan il 11 Mag 2018
Modificato: Stephan il 11 Mag 2018
Hi,
x(1:3) = 0.2;
y = [3 5 7];
plot(x,y, '*', 'color', 'r')
gives you:
Best regards
Stephan

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by