C/C++ source
0001 #include <complex.h> 0002 #include <math.h> 0003 #include "mex.h" 0004 0005 struct distriparam { 0006 double *pn; 0007 double *ksi0; 0008 int *rhon; 0009 }; 0010 0011 typedef struct distriparam distriparam_format; 0012 0013 distriparam_format load_f0(structure_name) 0014 mxArray *structure_name; 0015 { 0016 distriparam_format data; 0017 /* data.pn = mxGetData(mxGetField(structure_name, 0, "pn")); 0018 data.ksi0 = mxGetData(mxGetField(structure_name, 0, "ksi0")); 0019 data.rho = mxGetData(mxGetField(structure_name, 0, "xrho"));*/ 0020 0021 0022 return(data); 0023 }