From: Matt J on 28 May 2010 16:39 "Giorgio " <christianjp(a)inwind.it> wrote in message <htp8ls$d5s$1(a)fred.mathworks.com>... > i would like to find out the OLS slope that passes through the smallest x, and highest y.. i.e. passing through min(x), max(y). ===== I must be missing something. In the data you've given min(x) and max(y) occur at 2 separate points. So, if this is to be a linear fit passing through these 2 points, then those 2 points constrain the line completely, irrespective of the rest of data. Just connect them with a line and you're done.
|
Pages: 1 Prev: old code written in Matlab 5.3 Next: regression through a fixed point |