Plotting straight line on graph
Show older comments
Hey easy question but how do i plot the line y=40 in matlab? What is the script i need to write?
Thanks zane :)
Accepted Answer
More Answers (2)
Walter Roberson
on 5 Aug 2015
plot([first_x last_x], 40)
Vedangi Gholap
on 16 Oct 2023
0 votes
plot([0 3], [40,40])
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!