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 Platforms (SUSE, Ubuntu, WinXP). The other file types actually work only on SUSE 10.2. Maybe you’ll run in even more trouble when testing. I’m still learning that C++ and memory management stuff…
The interface is based on MEX, so you have to compile the C++ files in src/ first. The compile.m file may help. After this you can call rsave and rload in MATLAB as you would do with save and load.
Further documentation can be found in my diploma thesis (main.pdf, in German).
I’ll be thankful, if you republish improvements on my software, when you make some.
Kind regards, Johannes Kissel.
P.S.: I’ll post the link to my file in the MATLAB file exchange as soon as Mathworks released it.
mathworks.com/support/tech-n … /1605.html
root.cern.ch/
fuzzy.fzk.de/~USCT/