MATLAB: How to graph two trendlines on one graph

fitlinearMATLABmultipletrendtrendline

I can plot two data sets on graph, however when I go to add a trend line, I can only do so for one data set. I need to be able two add a trend line for both data sets. So my plot will have to data sets and two trendlines.
Thanks guys,
Bobby

Best Answer

Try using the command hold on and plot the other trendline. (Type help hold on in the command window for description)