How to get a line plot

4 vues (au cours des 30 derniers jours)
B!nd
B!nd le 29 Nov 2021
Commenté : B!nd le 29 Nov 2021
i need 3 lines in my graph. one of them is a straight line parallel to x axis at y=200 from x=25 to 45. im not able to get the line
x=[25,32,45]
y1= (20.*3.*1000)./300
plot(x,y1,Color='black',Marker='.')
axis([20 50 100 400])

Réponse acceptée

Chunru
Chunru le 29 Nov 2021
x=[25 45];
y=[200 200]
y = 1×2
200 200
plot(x,y,Color='black')
axis([20 50 100 400])
  1 commentaire
B!nd
B!nd le 29 Nov 2021
thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by