plot a 2d grid



Hello

I'm writing an implementation for the kohonen SOM (in neural
networks field) and I need to plot a rectangular mesh of
coordinates on a simple 2d plane.

I have a 3-d array which is practically a matrix of
coordinates (a X-by-Y-by-2 array) and I want to plot it
where all neighboring coordinates are connected.

For example:
grid(:,:,1) =
1 2 3
4 5 6
7 8 9

grid(:,:,2) =
9 8 7
6 5 4
3 2 1

so in the plot, I'd want points in (1,9),(2,8),(3,7), etc.
where (1,9) is connected to its neighbors (2,8) and (4,6)
and (5,5) is connected to its neighbors (2,8),(4,6),(8,2),(6,4)
etc...

Someone gave me a solution of using a simple matrix with
complex numbers which will serve as coordinates but this
seems a bit unnatural.

any suggestions?

Thank you
.



Relevant Pages

  • Re: Epic game DM advice
    ... Plot devices are fairly universal and scalable, ... Is the Drow leader named Charles Manson, ... One escaped into a plane of his own ... your idea about the plane expanding work. ...
    (rec.games.frp.dnd)
  • Re: Mapping spherical antenna patterns to 2D contour plots
    ... trying to take 3D spherical antenna ... everyday spherical transformation map to a x-y plot, ... Just what are you trying to represent in a contour map? ... horizontal plane and vertical plane and plot those as simple ...
    (comp.soft-sys.matlab)
  • Be sceptical. Be very, very sceptical.
    ... The UK Terror Plot ... None of the alleged terrorists had made a bomb. ... None had bought a plane ticket. ... Agency would mean they couldn't be a plane bomber for quite some time. ...
    (soc.culture.russian)
  • Re: Total of 15 "terrorists" charged now
    ... AFAIK there has been no assertion bythe authorities that mixing liquid ... explosive on a plane was the modus operandi. ... The actual plot itself was foiled because the ... police blundered into the bomb factory, ...
    (uk.legal)
  • Epic game DM advice
    ... and go till we run out of plot. ... But i've never run an epic game and I need some advice on how to set up ... the gods unmade a whole race. ... One escaped into a plane of his own ...
    (rec.games.frp.dnd)