Plotting straight line on graph

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

 采纳的回答

Simon
Simon 2023-10-15
移动:Matt J 2023-10-15

0 个投票

yline(40)

1 个评论

Note that yline is available from R2018b onwards.
In case of an older version, use the method described in the other answer.

请先登录,再进行评论。

类别

在 帮助中心 和 File 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