Prev: Reading Non-Rectangular Text File
Next: load
From: Terry King on 22 Jul 2010 20:54 Hello all, I have created a wonderful set of histograms, but I am unable to plot a so called "line of best fit" over the bars. I have read about histfit, but I am not in need of a normal distribution line, I just need a line that will lie accross the tops of the bars on my histogram and I don't know how. Kind regards, Terry
From: Ross on 27 Jul 2010 03:10 "Terry King" <tinkdej890(a)yahoo.com> wrote in message <i2ap7c$9qv$1(a)fred.mathworks.com>... > Hello all, > I have created a wonderful set of histograms, but I am unable to plot a so called "line of best fit" over the bars. I have read about histfit, but I am not in need of a normal distribution line, I just need a line that will lie accross the tops of the bars on my histogram and I don't know how. > > Kind regards, > Terry You can use polyfit to fit a polynomial of whatever order you specify. If the data indicate to you that a straight line is appropriate, then use order=1. Ross
|
Pages: 1 Prev: Reading Non-Rectangular Text File Next: load |