Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2579 > unrolled thread
| Started by | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| First post | 2011-05-21 10:50 +0000 |
| Last post | 2011-05-21 10:50 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: question about plotting Bob Hanlon <hanlonr@cox.net> - 2011-05-21 10:50 +0000
| From | Bob Hanlon <hanlonr@cox.net> |
|---|---|
| Date | 2011-05-21 10:50 +0000 |
| Subject | Re: question about plotting |
| Message-ID | <ir85e3$bjk$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web