Results 1 to 5 of 5

Thread: Qt to Matlab (mat format) export data to Matlab .mat format -v4

  1. #1
    Join Date
    Nov 2008
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default Qt to Matlab (mat format) export data to Matlab .mat format -v4

    Helllo everyone,

    Do you know of a straight forward method to export a matrix (array or vector) to Matlab's mat file format, version 4 spec or newer?

    For example in Octave, you can create a Matlab mat file like this:
    save newfilename vector1 vector2 matrix1 -v4

    Any help or leads will be greatly appreciated!

  2. #2
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Qt to Matlab (mat format) export data to Matlab .mat format -v4

    I dont think there's a straight forward method, but I think octave is opensource, not sure, if so you can check the source code.
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  3. #3
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt to Matlab (mat format) export data to Matlab .mat format -v4

    will you be running your Qt app on a machine with matlab installed? If so, why don't you invoke the matlab engine?

  4. #4
    Join Date
    Sep 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt to Matlab (mat format) export data to Matlab .mat format -v4

    There's a C library for that: http://sourceforge.net/projects/matio/
    I'm about to test it.

  5. #5
    Join Date
    Feb 2013
    Location
    Varna, Bulgaria
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default Re: Qt to Matlab (mat format) export data to Matlab .mat format -v4

    How to use matio under Windows 7 and Qt5?

Similar Threads

  1. Export to ods format
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2009, 09:40
  2. Qt + Matlab
    By zeeb100 in forum Qt Programming
    Replies: 7
    Last Post: 24th February 2009, 19:34
  3. How to deploy QT with matlab?
    By amagdy.ibrahim in forum Installation and Deployment
    Replies: 6
    Last Post: 3rd July 2008, 15:17
  4. Like Matlab
    By Colx007 in forum Qt Programming
    Replies: 10
    Last Post: 23rd April 2008, 06:07
  5. C mex in MATLAB and the commenting
    By Masih in forum General Programming
    Replies: 1
    Last Post: 22nd August 2007, 22:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.