MATLAB: Plot a straight line on another graph plot Hi, I have a curve line graph that I plot using plot function. How can I put reference lines on it as shown in figure attached? Any help? Thanks.. Best Answer It looks as though you want to plot tangent lines at specific points on the curve. See How to draw tangent line at infleciton point? for an example. Related SolutionsMATLAB: Is there any way to make a plot without slopes? I want this plot to have only straight lines in both the x-direction and the y-direction. help stairs MATLAB: Graph looks like a dotted straight line tb=(I*m*tl)./(2*u*q.*a) % is equivalent to (I*m*(2*u*q.*a))/(I*m*2*u*q.*a))so everything gets cancelled out , you will have a question why the first value of tb is NaN because when you divide zero by zero in matlab you get a NaN ( https://www.mathworks.com/help/matlab/ref/nan.html#f91-998317 ) Related QuestionGraph plot always appears as a straight linePlotting multiple graphs and adding a straight lineI want to add a line of best fit to the plot using the polyfit function.
Best Answer