Hey easy question but how do i plot the line y=40 in matlab? What is the script i need to write?
Thanks zane :)

 Respuesta aceptada

Simon
Simon el 15 de Oct. de 2023
Movida: Matt J el 15 de Oct. de 2023

0 votos

yline(40)

1 comentario

Dyuman Joshi
Dyuman Joshi el 15 de Oct. de 2023
Note that yline is available from R2018b onwards.
In case of an older version, use the method described in the other answer.

Iniciar sesión para comentar.

Más respuestas (2)

Walter Roberson
Walter Roberson el 5 de Ag. de 2015
plot([first_x last_x], 40)

2 comentarios

Simon
Simon el 15 de Oct. de 2023
this does not work
Matt J
Matt J el 15 de Oct. de 2023
plot([first_x last_x], [40,40])

Iniciar sesión para comentar.

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Ag. de 2015

Respondida:

el 16 de Oct. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by