Revision 1283503

Go back to digest for 11th March 2012

Features in Educational

Nicolas Brisset committed changes in /branches/work/kst/portto4/kst:

Add support to Kst for Matlab's .mat format (v4 and v5), thanks to the excellent matio library (http://sourceforge.net/projects/matio/) by Christopher C. Hulbert.

This provides pretty complete support, with even the cmake module to check for matio and a small sample file to test. It still needs to be reviewed and tested in more depth, but it can read all the test files I've thrown at it
and all the types of primitives:
- scalars
- vectors
- matrices
- strings (limited to char, due to missing support for UTF in matio for now)

Performance is pretty impressive, since Matlab stores the (binary) data on contiguous disk areas and can even compress them. I have generated vectors of 1 million points with octave and they load very fast (in the order of 1 s).
It is all supported semalessly thanks to matio.

It looks like 2.0.5 will be a pretty nice release :-)

P.S.: I have added a HOWTO in the src/datasources dir to help people who would want to add support for other formats to get started.

File Changes

Added 10 files
  • /branches/work/kst/portto4/kst
  •   /sample_data/matlab_basic_types.mat
  •   /tests/matlab.kst
  •   /cmake/modules/FindMatio.cmake
  •   /src/datasources/HOWTO_add_a_datasource.txt
  •   /src/datasources/matlab
  •   /src/datasources/matlab/kstdata_matlab.desktop
  •   /src/datasources/matlab/matfile_format.pdf
  •   /src/datasources/matlab/matlab.cpp
  •   /src/datasources/matlab/matlab.h
  •   /src/datasources/matlab/matlab.pro
Modified 2 files
  • /branches/work/kst/portto4/kst/cmake
  •   /CMakeLists.txt
  •   /src/datasources/CMakeLists.txt
12 files changed in total