# sensor to source

**URL:** <https://mne.discourse.group/t/sensor-to-source/319>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 13, 2011, 3:00pm UTC](https://mne.discourse.group/t/sensor-to-source/319 "2011-06-13T15:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 13, 2011, 3:00pm UTC](https://mne.discourse.group/t/sensor-to-source/319/1 "2011-06-13T15:00:03Z")

</div>

Hello all,

> From mne\_read\_epoch I get data that is channels by time by epochs and

would like to convert that into source information using an inverse  
operator, so I can turn the data into an stc file and have it ready for  
label processing.

Is there an m file to use, or some other way of computing the information  
using the channel based data and the inverse operator in matlab?

Thank you,  
-Ricky

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 13, 2011, 3:43pm UTC](https://mne.discourse.group/t/sensor-to-source/319/2 "2011-06-13T15:43:31Z")

</div>

Hi Ricky,  
&nbsp;&nbsp;I think you're looking for mne\_ex\_compute\_inverse.m which you many need  
to modify and mne\_write\_inverse\_sol\_stc.m

Regards,  
Hari

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 14, 2011, 1:54pm UTC](https://mne.discourse.group/t/sensor-to-source/319/3 "2011-06-14T13:54:31Z")

</div>

Hi Ricky,

if you turn out to write a new MNE function for your needs, it would  
be great if you could share it with the community.  
I'd be happy to add it to the mne-matlab toolbox:

[https://github.com/mne-tools/mne-matlab](https://github.com/mne-tools/mne-matlab)

By sharing your code you help others but others help you too by  
suggesting improvement and eventually fixing bugs you did not see.

Best,  
Alex
