Forums

Creating Structures in MEX files

Started by decious99 August 29, 2004
I am working on creating a MEX file that will read data out of a
ASCII text file and place its contents into a structure. Anyone
have an idea how to create a structure that can be passed back as a
matlab variable?

thanks



Hi,
 
There are number of functions associated with it. See "mxCreateStructArray", 'mxCreateStructMatrix", "mxGetField", "mxAddField" etc and their related help. You may use these to create and pass back structures as a matlab variable.
 
Hope it helps.
 
Cheers,
 
-Snehamoy
----- Original Message -----
From: decious99
To: m...@yahoogroups.com
Sent: Sunday, August 29, 2004 10:53 PM
Subject: [matlab] Creating Structures in MEX files

I am working on creating a MEX file that will read data out of a
ASCII text file and place its contents into a structure.  Anyone
have an idea how to create a structure that can be passed back as a
matlab variable?

thanks



_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3