Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | Creating Structures in MEX files

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

Creating Structures in MEX files - decious99 - Aug 29 17:23:00 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





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: Creating Structures in MEX files - Snehamoy Banerjee - Aug 29 18:01:00 2004

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



_____________________________________
/groups.php3





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )