MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: position of matrix elements for intervals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78459] Re: position of matrix elements for intervals
  • From: "Drago Ganic" <dganic at vodatel.net>
  • Date: Mon, 2 Jul 2007 06:52:01 -0400 (EDT)
  • References: <f68491$eqh$1@smc.vnet.net>

Kristoph,
just use:

m= {{1, 1.`, 0.9999999932328848`}, {1.`, 0.9985849617864345`,
       3.7570598417296495`*^-108}, {0.9999999999267634`,
       4.0643593704937925`*^-207, 0}}
Position[m, x_Real /; x >= 0.99]

Position[m, x_Real /; 0.4 <= x >= 0.9]

Greetings,
Drago

"kristoph" <kristophs.post at web.de> wrote in message 
news:f68491$eqh$1 at smc.vnet.net...
> Hi,
>
> Assume you have the following table:
>
> {{1, 1.`, 0.9999999932328848`}, {1.`, 0.9985849617864345`,
>      3.7570598417296495`*^-108}, {0.9999999999267634`,
>      4.0643593704937925`*^-207, 0}}
>
> I would like the position of all the elements >= 0.99. Or the position
> of all the elements of [0.4, 0.9] which in the above table does make a
> lot of sense.
> I'm familiar with Position[...,.] but since I look for reals of an
> interval I would kindly ask for help.
>
> Thanks a lot,
> Kristoph
>
> 




  • Prev by Date: Re: Graphics package in v6
  • Next by Date: Re: position of matrix elements for intervals
  • Previous by thread: Re: position of matrix elements for intervals
  • Next by thread: Re: position of matrix elements for intervals