# Multiple Monitors in different rows

**URL:** <https://brian.discourse.group/t/multiple-monitors-in-different-rows/377>\
**Category:** Science, Projects, and Showcases\
**Created:** [3 May 2021 16:52 UTC](https://brian.discourse.group/t/multiple-monitors-in-different-rows/377 "2021-05-03T16:52:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![I\_H](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@I\_H](https://brian.discourse.group/u/I_H)\
**Post date:** [3 May 2021 16:53 UTC](https://brian.discourse.group/t/multiple-monitors-in-different-rows/377/1 "2021-05-03T16:53:00Z")

</div>

Hello everyone,

I’m new here and also pretty new at programming. I am doing my master thesis on snake’s Infra-red map formation using Brian2.  
The main Idea behind my project is to implement a specific input and connect it to different neuron layers with different stdp-Synapses.  
Now the tricky part…, In order to create a 2 Dimensional monitor (Detector) Layer, I have to use 10 detectors in 10 different rows (layers) and I’m not sure how to do it.  
The main Idea is to look at the firing rates from all the monitors compared to time and each Detector.

Does anyone has a piece of advice or a suggestion on how to do it?

Thank you very much in advance!  
Iris H.

---

<div class="post-metadata">

**Author:** ![dan](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/dan/32/7_2.png) [@dan](https://brian.discourse.group/u/dan)\
**Post date:** [5 May 2021 09:13 UTC](https://brian.discourse.group/t/multiple-monitors-in-different-rows/377/2 "2021-05-05T09:13:11Z")

</div>

If you have an N by M 2d group of neurons, just create a single group with N\*M neurons. Then neuron index i has 2d position `(int(i/M), i%M)`.

---

<div class="post-metadata">

**Author:** ![mstimberg](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/mstimberg/32/11_2.png) [@mstimberg](https://brian.discourse.group/u/mstimberg)\
**Post date:** [5 May 2021 09:20 UTC](https://brian.discourse.group/t/multiple-monitors-in-different-rows/377/3 "2021-05-05T09:20:23Z")

</div>

Just do add to @dan’s reply: you might be interested in this example in the documentation: [Example: spatial\_connections — Brian 2 2.4.2 documentation](https://brian2.readthedocs.io/en/stable/examples/synapses.spatial_connections.html) It uses neurons in a 2D grid with the approach Dan described, but more “biological” by using positions/distances in µm instead of abstract row/column indices.
