From help-octave-request at bevo dot che dot wisc dot edu Tue Dec 15 11:38:07 1998 Subject: Re: fit data - trendline through zero From: ldoolitt at jlab dot org To: Marcel at Meissel dot com (Marcel Meissel) Cc: help-octave at bevo dot che dot wisc dot edu Date: Tue, 15 Dec 1998 12:38:05 -0500 (EST) Marcel - > I use polyfit to find the trendline in my data. How can I force it to go > through zero ? Divide your data by x before fitting. Think about it. On a related note, I have a hacked polyfit (polyweightfit) that accepts weighting factors for each point. If that sounds generally interesting, I can post or submit it. - Larry Doolittle ldoolitt at jlab dot org