Proposal: MAT-File reading module

21 views
Skip to first unread message

Ben Bullock

unread,
Dec 14, 2012, 3:47:10 AM12/14/12
to the-quanti...@googlegroups.com
Greetings Quantified Onion members.

I am proposing a new Perl module for reading (and in the future possibly writing) the MATLAB MAT-File format. If anyone here uses or wants to use this format I would appreciate your input. The place to go is


You can also fork the code on github here:


I hope to hear from you on prepan. If prepan is inconvenient, please reply here, or to me by email, or even by the github issue tracker.

Ben Bullock

gizmomathboy

unread,
Dec 15, 2012, 4:09:15 PM12/15/12
to the-quanti...@googlegroups.com
Ben,

This is an awesome thing.

Anything to wean folks off of the matlab addiction.

gizmo

Ben Bullock

unread,
Dec 16, 2012, 8:49:21 PM12/16/12
to the-quanti...@googlegroups.com
I've now put this on CPAN:


It should install with

cpan Data::MATFile

There is a script in the distribution called "mat2json" which converts a MAT-File into JSON. This means that people who are interested in using this can test the distribution with a ".mat" file. The JSON is not pretty-printed, so something like

mat2json "your.mat" | json_xs

is recommended, and then the output can be examined to see whether it corresponds to the output expected. (json_xs can be replaced with json_pp here.)

Reply all
Reply to author
Forward
0 new messages