Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2579
| From | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: question about plotting |
| Date | 2011-05-21 10:50 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ir85e3$bjk$1@smc.vnet.net> (permalink) |
Clear[a, b, c, x]
data = Table[{x, 3 x^2 - 5 x + 7 + 10*RandomReal[]}, {x, 0, 5, .1}];
f[x_] = Fit[data, {1, x, x^2}, x];
Plot[f[x], {x, 0, 5}, Epilog -> {Red, Point[data]}]
Show[ListPlot[data, PlotStyle -> Red], Plot[f[x], {x, 0, 5}]]
Bob Hanlon
---- Krzysztof Kutak <krzysztof.kutak@googlemail.com> wrote:
=============
Hello,
I would like to combine plot od datapoints in one dimension(for this I
use ListPlot[data]) with fitted function ( f[r] ). Do you know how to
do this?
Best wishes
Krzysztof
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: question about plotting Bob Hanlon <hanlonr@cox.net> - 2011-05-21 10:50 +0000
csiph-web