Re: Plot {x,y} and {x,z} of a List {x,y,z}

• To: mathgroup at smc.vnet.net
• Subject: [mg65782] Re: [mg65694] Plot {x,y} and {x,z} of a List {x,y,z}
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Mon, 17 Apr 2006 02:28:40 -0400 (EDT)
• Reply-to: hanlonr at cox.net
• Sender: owner-wri-mathgroup at wolfram.com

```Off[General::spell1];

data=Table[{a=Random[],5a+Random[],
4a^2+a+Random[]},{10}];

datay=data[[All,{1,2}]];

dataz=data[[All,{1,3}]];

fity[x_]=Fit[datay, {1,x}, x];

fitz[x_]=Fit[dataz, {1,x,x^2}, x];

Plot[{fity[x],fitz[x]},{x,0,1},
Epilog->{Red, AbsolutePointSize[4],
Point/@datay,Blue,Point/@dataz}];

Bob Hanlon

>
> From: "petitsun1" <r.bactavatchalou at mx.uni-saarland.de>
To: mathgroup at smc.vnet.net
> Subject: [mg65782] [mg65694] Plot {x,y} and {x,z} of a List {x,y,z}
>
> Hi,
> I have a list of {x,y,z} and I would like to fit {x,y} and {x,z}.
> How can I do it?
> It must be easy but I have not found...
> Thanks, Ravi
>
>

```

• Prev by Date: Re: adding matrices
• Next by Date: Re: TeX or LaTeX input for Mathematica
• Previous by thread: Re: Plot {x,y} and {x,z} of a List {x,y,z}
• Next by thread: unable to FullSimplify