Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: Single Trendline for multiple datasets

$
0
0
On 1/23/2013 2:24 PM, Charlotte wrote:
> I have a plot with multiple datasets plotted, and would like to plot on
> top a single trendline for all the datasets - is there an easy way to do
> this?

Do you have the Statistics Toolbox by any chance?

If so, assemble the data as Tideman shows, plot and call lsline. Then,
set the dataset for the total group to [] to leave the individual plots
(or set the color to background to make invisible).

--

Viewing all articles
Browse latest Browse all 19628

Trending Articles