# Matlab Functions for Interacting with Slicer Data?

**URL:** https://discourse.slicer.org/t/matlab-functions-for-interacting-with-slicer-data/786
**Category:** Development
**Tags:** matlab
**Created:** [July 29, 2017, 10:32pm UTC](https://discourse.slicer.org/t/matlab-functions-for-interacting-with-slicer-data/786 "2017-07-29T22:32:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![\_jmichael](https://avatars.discourse-cdn.com/v4/letter/_/ce7236/32.png) [@\_jmichael](https://discourse.slicer.org/u/_jmichael)
#### Post date: [July 29, 2017, 10:32pm UTC](https://discourse.slicer.org/t/matlab-functions-for-interacting-with-slicer-data/786/1 "2017-07-29T22:32:47Z")

</div>

Are there any existing collections of functions developed for Matlab that allow data saved from Slicer (e.g. markups fiducial, affine transforms, etc.) to be loaded in/out of Matlab?  
I’m aware of the Matlab Bridge extension of course, but rather something where the connection is not “live”. For instance, loading a .fcsv file created by Slicer into Matlab for analysis or writing points calculated in Matlab to a .fcsv file to be visualized using Slicer.

I found myself writing some [simple MATLAB code](https://github.com/jstnmchl/slicerUtils) to do this and thought I might check,

1. Does something like this already exist? and
2. If it doesn’t and I made something like it, would others find it useful?

Thanks in advance for your help!

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [July 30, 2017, 12:30am UTC](https://discourse.slicer.org/t/matlab-functions-for-interacting-with-slicer-data/786/2 "2017-07-30T00:30:15Z")

</div>

MatlabBridge has all the reader and writer functions for reading images, transforms, models, fiducials, etc. You can use them interactively through MatlabBridge in Slicer; or just use them independently from Slicer, in any Matlab project:

[https://subversion.assembla.com/svn/slicerrt/trunk/MatlabBridge/src/MatlabCommander/commandserver/](https://subversion.assembla.com/svn/slicerrt/trunk/MatlabBridge/src/MatlabCommander/commandserver/)

Let me know if you developed any additional reader/writer that is not there yet, we can add them, too.
