# ROOT & Matlab usable together?

**URL:** <https://root-forum.cern.ch/t/root-matlab-usable-together/24000>\
**Category:** Roofit and RooStats\
**Created:** [March 8, 2017, 9:16pm UTC](https://root-forum.cern.ch/t/root-matlab-usable-together/24000 "2017-03-08T21:16:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [March 8, 2017, 9:16pm UTC](https://root-forum.cern.ch/t/root-matlab-usable-together/24000/1 "2017-03-08T21:16:12Z")

</div>

Hi,

is Matlab usable with ROOT or vice versa ? I found only 2-3 comments/topics about that

Via ROOT:

> [@Mroot - MATLAB/ROOT data interface](https://root-forum.cern.ch/t/mroot-matlab-root-data-interface/7212):
>
> Hi! I’ve written a MATLAB/ROOT data interface for reading and writing ROOT files from within MATLAB just as you do with MATLAB files. This enables research projects which use MATLAB for computation to store and exchange their data in the powerful ROOT file format. The following MATLAB data types are supported: Cell Structure Logical Char Single/Double (U)Int-8/16/32/64 The following file types are implemented: TFile TXMLFile TNetFile TSQLFile Unfortunately only TFile works on all tested …

Via Matlab respectively C++:

> **[Verfassen von C Funktionen, die aus MATLAB heraus aufgerufen werden können...](https://de.mathworks.com/help/matlab/call-mex-files-1.html)**
>
> Erstellen von C Funktionen, die aus MATLAB R2017b oder früher heraus aufgerufen werden können; dabei dient mxArray zum Zugriff auf MATLAB-Variablen und zur Erstellung von Arrays, die an MATLAB zurückgegeben werden

so I’m rather wary before I put effort into rolling a cornered object… is it for example possible to use Matlab-functions in a c/c+±File and ACLiC knows them ?  
Has anybody experience with using ROOT and Matlab together ?

Thank you in advance again!

Kind regards, -B

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 22, 2017, 9:16pm UTC](https://root-forum.cern.ch/t/root-matlab-usable-together/24000/2 "2017-03-22T21:16:13Z")

</div>

Closed on March 22, 2017, 9:16pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
