 
 
 
 
 
 
Re: filling in an array
- To: mathgroup at smc.vnet.net
- Subject: [mg55359] Re: [mg55347] filling in an array
- From: DrBob <drbob at bigfoot.com>
- Date: Sun, 20 Mar 2005 04:11:51 -0500 (EST)
- References: <200503190947.EAA00320@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
b=Array[#/10&,{10}]
or
b=Table[i/10,{i,1,10}]
or
b=Range[10]/10
Bobby
On Sat, 19 Mar 2005 04:47:07 -0500 (EST), dumb_founded <andreajagger_8 at hotmail.com> wrote:
> How can I input values into an array most efficiently?  I tried the
> code below, but it doesn't work.  The kernel starts working through the
> loop and never gets out.
>
> Array[b, 10];
> For[i = 1, i = 10, b[i] = i/10]
>
>
>
>
-- 
DrBob at bigfoot.com
- References:
- filling in an array
- From: "dumb_founded" <andreajagger_8@hotmail.com>
 
 
- filling in an array

