<p>:-)</p>
<div class="gmail_quote">On Mar 4, 2012 8:27 PM, "Nicolas Brisset" <<a href="mailto:nicolas.brisset@eurocopter.com">nicolas.brisset@eurocopter.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
SVN commit 1283503 by brisset:<br>
<br>
Add support to Kst for Matlab's .mat format (v4 and v5), thanks to the excellent matio library (<a href="http://sourceforge.net/projects/matio/" target="_blank">http://sourceforge.net/projects/matio/</a>) by Christopher C. Hulbert.<br>

<br>
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<br>

and all the types of primitives:<br>
- scalars<br>
- vectors<br>
- matrices<br>
- strings (limited to char, due to missing support for UTF in matio for now)<br>
<br>
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).<br>

It is all supported semalessly thanks to matio.<br>
<br>
It looks like 2.0.5 will be a pretty nice release :-)<br>
<br>
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.<br>
<br>
<br>
 M  +5 -0      cmake/CMakeLists.txt<br>
 A             cmake/modules/FindMatio.cmake<br>
 M  +6 -0      cmake/src/datasources/CMakeLists.txt<br>
 AM            sample_data/matlab_basic_types.mat<br>
 A             src/datasources/HOWTO_add_a_datasource.txt<br>
 A             src/datasources/matlab (directory)<br>
 A             src/datasources/matlab/kstdata_matlab.desktop<br>
 AM            src/datasources/matlab/matfile_format.pdf<br>
 A             src/datasources/matlab/matlab.cpp   [License: GPL (v2+)]<br>
 A             src/datasources/matlab/matlab.h   [License: GPL (v2+)]<br>
 A             src/datasources/matlab/<a href="http://matlab.pro" target="_blank">matlab.pro</a><br>
 A             tests/matlab.kst<br>
<br>
<br>
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1283502:1283503<br>
@@ -89,8 +89,13 @@<br>
 if(kst_3rdparty)<br>
   message(STATUS "3rd party libs for plugins--------------------")<br>
   find_package(Getdata)<br>
+  message(STATUS "")<br>
   find_package(Gsl)<br>
+  message(STATUS "")<br>
   find_package(Netcdf)<br>
+  message(STATUS "")<br>
+  find_package(Matio)<br>
+  message(STATUS "")<br>
   find_package(CFITSIO)<br>
   #find_package(Dmc)<br>
   message(STATUS "----------------------------------------------")<br>
--- branches/work/kst/portto4/kst/cmake/src/datasources/CMakeLists.txt #1283502:1283503<br>
@@ -51,5 +51,11 @@<br>
   #kst_link(${DMC_LIBRARIES})<br>
 endif()<br>
<br>
+if(matio)<br>
+       include_directories(${MATIO_INCLUDE_DIR})<br>
+       kst_add_plugin(. matlab) # Directory named after the file format, not the lib<br>
+       kst_link(${MATIO_LIBRARIES})<br>
+endif()<br>
<br>
<br>
+<br>
_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
</blockquote></div>