root/library/mex/mxstruct2config.cpp @ 331

Revision 331, 219 bytes (checked in by miro, 16 years ago)

conversion of matlab struct to config, usage: mxstruct2config(struct, filename)

RevLine 
[331]1#include "mexparse.h"
2
3void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) {
4        UImxArray F (input[0]);
5        string filename = mxArray2string(input[1]);
6        F.writeFile(filename.c_str());
7}
Note: See TracBrowser for help on using the browser.