If you use refline() the line will extend across the entire axes.
Otherwise, use the x values (0 and 150) as inputs to your linear function to get the y values. Then use the x and y values to plot a line using plot() or line().
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!