# Understanding the channel locations so as to load channel locations from a custom formatted mat file?

**URL:** <https://mne.discourse.group/t/understanding-the-channel-locations-so-as-to-load-channel-locations-from-a-custom-formatted-mat-file/4238>\
**Category:** Support & Discussions\
**Tags:** eeg\
**Created:** [January 8, 2022, 11:50am UTC](https://mne.discourse.group/t/understanding-the-channel-locations-so-as-to-load-channel-locations-from-a-custom-formatted-mat-file/4238 "2022-01-08T11:50:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neerajww](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@neerajww](https://mne.discourse.group/u/neerajww)\
**Post date:** [January 8, 2022, 11:50am UTC](https://mne.discourse.group/t/understanding-the-channel-locations-so-as-to-load-channel-locations-from-a-custom-formatted-mat-file/4238/1 "2022-01-08T11:50:35Z")

</div>

Hi,

I have a .mat files which on loading shows the channel information in a format shown in the image below. It corresponds to 128 channel EEG data (A1, A2, …, A128). Can someone help me understand what do the numbers mean here (like, are the first three array elements in each row the x,y,z co-ordinates?). I will like to create a custom montage in MNE using these channel locs. What will be the efficient way to go for it?

 ![Screenshot 2022-01-08 at 12.45.22](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/8/8c4b6d541c23707016e24066a6291604546cc266.png)

I will appreciate the help.

---

<div class="post-metadata">

**Author:** ![mmagnuski](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mmagnuski/32/153_2.png) [@mmagnuski](https://mne.discourse.group/u/mmagnuski)\
**Post date:** [January 9, 2022, 10:31pm UTC](https://mne.discourse.group/t/understanding-the-channel-locations-so-as-to-load-channel-locations-from-a-custom-formatted-mat-file/4238/2 "2022-01-09T22:31:53Z")

</div>

Hi @neerajww,  
it is difficult to answer your question without knowing the format of the files you are trying to read - `.mat` files can contain arbitrary information. How do you obtain these `.mat` files?

---

<div class="post-metadata">

**Author:** ![neerajww](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@neerajww](https://mne.discourse.group/u/neerajww)\
**Post date:** [January 19, 2022, 8:32pm UTC](https://mne.discourse.group/t/understanding-the-channel-locations-so-as-to-load-channel-locations-from-a-custom-formatted-mat-file/4238/3 "2022-01-19T20:32:14Z")

</div>

Thanks you @mmagnuski for the reply. I figured out that the locations {x,y,r} in the mat file matched closely with the ‘biosemi128’ montage. This now solves the issue that was bothering me.
