Writing MAT files using Octave C++ Code

Ben Abbott bpabbott at mac.com
Sun Mar 23 11:13:54 CDT 2008


On Mar 22, 2008, at 10:45 PM, hughgs at duke.edu wrote:
>
> I currently have a Matlab program that I'm porting to C++.  One  
> "feature"
> I would like to retain is the ability to use .mat files for both  
> importing
> and exporting certain pieces of data.  However, using the Matlab  
> libraries
> is problematic, since it requires users to have a Matlab license  
> which can
> be expensive.  So, I would like to use the Octave C++ libraries to  
> write
> .mat files of data.
>
> I've looked around on the web and cannot find any documentation on C++
> libraries which have these types of commands.  So, I have two  
> questions.
> First, do these commands exist, and second where can I find some
> documentation on them.  As an example, what is the Octave C++  
> equivalent
> to the Matlab library command matOpen?
>
> Thank you.
>
> George S. Hugh
> 261 Hudson Annex
> (302) 530-9335
> hughgs at duke.edu

What you look for certainly does exist.  Some examples,

http://webscripts.softpedia.com/script/Scientific-Engineering-Ruby/MAT-File-I-O-C-Library-with-Fortran-90-95-Module-36705.html

http://www.mathworks.fr/matlabcentral/fileexchange/loadFile.do?objectId=8187&objectType=file

Ben



More information about the Help-octave mailing list