MathGroup Archive 2000

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

Search the Archive

Re: Getting coordinates of array member

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26289] Re: [mg26247] Getting coordinates of array member
  • From: Jacqueline Zizi <jazi at club-internet.fr>
  • Date: Sun, 10 Dec 2000 00:20:00 -0500 (EST)
  • References: <200012060716.CAA27644@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Use the menu Input > Create Table Matrix Palette and fill it with the desired
numbers tp get the matrix.

Then write for example naturally beside it [[3,1]] . That will give you the
element of the 3d line and first column.

Out[60]=
7

These ordering conventions are the usual ones


Jacqueline Zizi




-------------------------------------------------------------------------------------

Stephane Hebert wrote:

> Hi folks,
>
> Ok, let's say I have this
>
>      1  2  3
>     -----------
>  1| 1  2  3
>  2| 4  5  6
>  3| 7  8  9
>
> A 3x3 matrice or array.  Each number in the array represents its' position
> from top left to bottom right.
>
> What I need to do is:
>
> Find what position 1,3 is.  Just by looking at the array, we find that 7 is
> the answer.
>
> Find what are the coordinates of 7.  Again just by looking at the array we
> see that the answer is 1,3
>
> I need to come up with a simplu function that will return these.
>
> pos = GetPos(x,y)
>
> coord = GetCoord(pos)
>
> I've done this before, way long ago and can't find it.
>
> Thanks.
>
> --
> Stephane Hebert
> =========================
> stephhebert at yourpants~videotron.ca
> Remove yourpants~ to reply
> =========================



  • Prev by Date: Re: transposing an equation
  • Next by Date: Re: Getting coordinates of array member
  • Previous by thread: Re: Getting coordinates of array member
  • Next by thread: Re: Getting coordinates of array member