473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Opening (MatLab) mat file from C

Hi...

I have a Matlab structure caled z, that has the following form:
z' =

[1x2 double]
[1x2 double]
[1x2 double]
[1x2 double]
[ 128]
'Matias'
'Bruno'
'12625'
'01:02:81'
'None'
'Coca Cola'
'Good'
[ 2]
[]
[]
[]
[1x2 double]
[1x2 double]
I have saved this structute as a mat file, which I want to read from a
C program that I am developing.
So far I have not been able to do so, despite many attempts, using the
Matlab API Help, and Mex-file help.

Is there any C code that I could use to read this mat file in a single
way.

Thank you very much

Oct 13 '06 #1
1 3181
Br***************@gmail.com wrote:
I have saved this structute as a mat file, which I want to read from a
C program that I am developing.
So far I have not been able to do so, despite many attempts, using the
Matlab API Help, and Mex-file help.

Is there any C code that I could use to read this mat file in a single
way.
Ask the authors of MatLab to publish the file format. If it's
literally the strings you have there then just step through the strings
parsing for tokens like [, ] and ".

Mmm homework...

Tom

Oct 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Srinath Avadhanula | last post by:
Hello, I wanted to connect to an already existing MATLAB application from python. From the MATHWORKS documentation at: ...
4
by: Sven Jerzembeck | last post by:
Hello guys, is there any possibiliy using Phython code in Matlab. I couldnt find any helpful stuff. Its not graphical stuff I am doing just calculations with arrays and strings. Thanks for ...
2
by: Binod Pant | last post by:
Does any one know of a way to call MATLAB from PHP/Perl? I found the Perl module Math:MATLAB , but it seems not to work on Windows, and it's not easy to install and use. This would enable one to...
0
by: tsjuan | last post by:
Hello Python Users, I've been trying to run multiple thread of Matlab by calling its com object via python. However, I keep getting error message that says Python can't find the attribute of...
8
by: Allen | last post by:
Does anyone agree with me? If you have used Matlab, welcome to discuss it.
3
by: The Cool Giraffe | last post by:
I have a 3D matrix in MatLab and i have saved it binary (i think) to a file data.mat and now i'd like to retrieve those values in C++. Even though i'm a ground breaking genius working with...
2
by: meisterbartsch | last post by:
Hi NG, I want to load a structure from a matlab file (*.mat) into vc++. In the best case I would have a matching structure in vc++ to acces the data of the loaded matlab structure. ...
4
by: itcecsa | last post by:
Hi, I am implementing a small Python project, what I am going to do is to open Matlab and run some M-files, and get some output from Matlab command prompt. I have no idea how to open Matlab...
1
by: sanctus | last post by:
I have a Matlab code which works fine in windows. Now I installed Xubuntu (because this way I have admin rights(=root) which I don't have on windows) and want to use the same code. To be able to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.