Borrar filtros
Borrar filtros

Plotting straight line on graph

18 visualizaciones (últimos 30 días)
Zane  Wilkinson
Zane Wilkinson el 5 de Ag. de 2015
Respondida: Vedangi Gholap el 16 de Oct. de 2023
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
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.


Vedangi  Gholap
Vedangi Gholap el 16 de Oct. de 2023
plot([0 3], [40,40])

Community Treasure Hunt

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

Start Hunting!

Translated by