Functions | |
| bin | mxArray2bin (const mxArray *in) |
| Convert the matlab-format mxArray to bin. | |
| short | mxArray2short (const mxArray *in) |
| Convert the matlab-format mxArray to short. | |
| int | mxArray2int (const mxArray *in) |
| Convert the matlab-format mxArray to int. | |
| double | mxArray2double (const mxArray *in) |
| Convert the matlab-format mxArray to double. | |
| double_complex | mxArray2double_complex (const mxArray *in) |
| Convert the matlab-format mxArray to double_complex. | |
| bvec | mxArray2bvec (const mxArray *in) |
| Convert the matlab-format mxArray to bvec. | |
| svec | mxArray2svec (const mxArray *in) |
| Convert the matlab-format mxArray to svec. | |
| ivec | mxArray2ivec (const mxArray *in) |
| Convert the matlab-format mxArray to ivec. | |
| vec | mxArray2vec (const mxArray *in) |
| Convert the matlab-format mxArray to vec. | |
| cvec | mxArray2cvec (const mxArray *in) |
| Convert the matlab-format mxArray to cvec. | |
| bmat | mxArray2bmat (const mxArray *in) |
| Convert the matlab-format mxArray to bmat. | |
| smat | mxArray2smat (const mxArray *in) |
| Convert the matlab-format mxArray to smat. | |
| imat | mxArray2imat (const mxArray *in) |
| Convert the matlab-format mxArray to imat. | |
| mat | mxArray2mat (const mxArray *in) |
| Convert the matlab-format mxArray to mat. | |
| cmat | mxArray2cmat (const mxArray *in) |
| Convert the matlab-format mxArray to cmat. | |
| void | bin2mxArray (const bin &in, mxArray *out) |
| Convert bin to the matlab-format mxArray. | |
| void | short2mxArray (const short &in, mxArray *out) |
| Convert short to the matlab-format mxArray. | |
| void | int2mxArray (const int &in, mxArray *out) |
| Convert int to the matlab-format mxArray. | |
| void | double2mxArray (const double &in, mxArray *out) |
| Convert double to the matlab-format mxArray. | |
| void | double_complex2mxArray (const double_complex &in, mxArray *out) |
| Convert double_complex to the matlab-format mxArray. | |
| void | bvec2mxArray (const bvec &in, mxArray *out) |
| Convert bvec to the matlab-format mxArray. | |
| void | svec2mxArray (const svec &in, mxArray *out) |
| Convert svec to the matlab-format mxArray. | |
| void | ivec2mxArray (const ivec &in, mxArray *out) |
| Convert ivec to the matlab-format mxArray. | |
| void | vec2mxArray (const vec &in, mxArray *out) |
| Convert vec to the matlab-format mxArray. | |
| void | cvec2mxArray (const cvec &in, mxArray *out) |
| Convert cvec to the matlab-format mxArray. | |
| void | bmat2mxArray (const bmat &in, mxArray *out) |
| Convert bmat to the matlab-format mxArray. | |
| void | smat2mxArray (const smat &in, mxArray *out) |
| Convert smat to the matlab-format mxArray. | |
| void | imat2mxArray (const imat &in, mxArray *out) |
| Convert imat to the matlab-format mxArray. | |
| void | mat2mxArray (const mat &in, mxArray *out) |
| Convert mat to the matlab-format mxArray. | |
| void | cmat2mxArray (const cmat &in, mxArray *out) |
| Convert cmat to the matlab-format mxArray. | |
| void | mxArray2Csvec (const mxArray *in, short *out) |
| Convert the matlab-format mxArray to C-format pointer to short. | |
| void | mxArray2Civec (const mxArray *in, int *out) |
| Convert the matlab-format mxArray to C-format pointer to int. | |
| void | mxArray2Cvec (const mxArray *in, double *out) |
| Convert the matlab-format mxArray to C-format pointer to double. | |
| void | mxArray2Ccvec (const mxArray *in, double *out_real, double *out_imag) |
| Convert the matlab-format mxArray to C-format pointers to double (real and imaginary parts). | |
| void | mxArray2Csmat (const mxArray *in, short **out) |
| Convert the matlab-format mxArray to C-format pointer to pointer to short. | |
| void | mxArray2Cimat (const mxArray *in, int **out) |
| Convert the matlab-format mxArray to C-format pointer to pointer to int. | |
| void | mxArray2Cmat (const mxArray *in, double **out) |
| Convert the matlab-format mxArray to C-format pointer to pointer to double. | |
| void | mxArray2Ccmat (const mxArray *in, double **out_real, double **out_imag) |
| Convert the matlab-format mxArray to C-format pointer to pointer to double (real and imaginary parts). | |
| void | Csvec2mxArray (short *in, mxArray *out) |
| Convert C-format pointer to short to matlab-format mxArray. | |
| void | Civec2mxArray (int *in, mxArray *out) |
| Convert C-format pointer to int to matlab-format mxArray. | |
| void | Cvec2mxArray (double *in, mxArray *out) |
| Convert C-format pointer to double to matlab-format mxArray. | |
| void | Ccvec2mxArray (double *in_real, double *in_imag, mxArray *out) |
| Convert C-format pointers to double (real and imaginary parts) to matlab-format mxArray. | |
| void | Csmat2mxArray (short **in, mxArray *out) |
| Convert C-format pointer to pointer to short to matlab-format mxArray. | |
| void | Cimat2mxArray (int **in, mxArray *out) |
| Convert C-format pointer to pointer to int to matlab-format mxArray. | |
| void | Cmat2mxArray (double **in, mxArray *out) |
| Convert C-format pointer to pointer to double to matlab-format mxArray. | |
| void | Ccmat2mxArray (double **in_real, double **in_imag, mxArray *out) |
| Convert C-format pointer to pointer to double (real and imaginary parts) to matlab-format mxArray. | |
A simple mex-file that performs QPSK modulation is given below.
#include <itcomm.h> #include <itmex.h> void mexFunction(int n_output, mxArray *output[], int n_input, const mxArray *input[]) { // Check the number of inputs and output arguments if(n_output!=1) mexErrMsgTxt("Wrong number of output variables!"); if(n_input!=1) mexErrMsgTxt("Wrong number of input variables!"); // Convert input variables to IT++ format bvec input_bits = mxArray2bvec(input[0]); // ------------------ Start of routine --------------------------- cvec output_symbols; QPSK_45 qpsk; output_symbols = qpsk.modulate_bits(input_bits); // ------------------ End of routine ----------------------------- // Create output vectors output[0] = mxCreateDoubleMatrix(1,output_symbols.size(), mxCOMPLEX); // Convert the IT++ format to Matlab format for output cvec2mxArray(output_symbols, output[0]); }
|
||||||||||||
|
Convert bin to the matlab-format mxArray.
|
|
||||||||||||
|
Convert bmat to the matlab-format mxArray.
|
|
||||||||||||
|
Convert bvec to the matlab-format mxArray.
|
|
||||||||||||||||
|
Convert C-format pointer to pointer to double (real and imaginary parts) to matlab-format mxArray.
|
|
||||||||||||||||
|
Convert C-format pointers to double (real and imaginary parts) to matlab-format mxArray.
|
|
||||||||||||
|
Convert C-format pointer to pointer to int to matlab-format mxArray.
|
|
||||||||||||
|
Convert C-format pointer to int to matlab-format mxArray.
|
|
||||||||||||
|
Convert C-format pointer to pointer to double to matlab-format mxArray.
|
|
||||||||||||
|
Convert cmat to the matlab-format mxArray.
|
|
||||||||||||
|
Convert C-format pointer to pointer to short to matlab-format mxArray.
|
|
||||||||||||
|
Convert C-format pointer to short to matlab-format mxArray.
|
|
||||||||||||
|
Convert C-format pointer to double to matlab-format mxArray.
|
|
||||||||||||
|
Convert cvec to the matlab-format mxArray.
|
|
||||||||||||
|
Convert double to the matlab-format mxArray.
|
|
||||||||||||
|
Convert double_complex to the matlab-format mxArray.
|
|
||||||||||||
|
Convert imat to the matlab-format mxArray.
|
|
||||||||||||
|
Convert int to the matlab-format mxArray.
|
|
||||||||||||
|
Convert ivec to the matlab-format mxArray.
|
|
||||||||||||
|
Convert mat to the matlab-format mxArray.
|
|
|
Convert the matlab-format mxArray to bin.
|
|
|
Convert the matlab-format mxArray to bmat.
|
|
|
Convert the matlab-format mxArray to bvec.
|
|
||||||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to pointer to double (real and imaginary parts).
|
|
||||||||||||||||
|
Convert the matlab-format mxArray to C-format pointers to double (real and imaginary parts).
|
|
||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to pointer to int.
|
|
||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to int.
|
|
||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to pointer to double.
|
|
|
Convert the matlab-format mxArray to cmat.
|
|
||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to pointer to short.
|
|
||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to short.
|
|
||||||||||||
|
Convert the matlab-format mxArray to C-format pointer to double.
|
|
|
Convert the matlab-format mxArray to cvec.
|
|
|
Convert the matlab-format mxArray to double.
|
|
|
Convert the matlab-format mxArray to double_complex.
|
|
|
Convert the matlab-format mxArray to imat.
|
|
|
Convert the matlab-format mxArray to int.
|
|
|
Convert the matlab-format mxArray to ivec.
|
|
|
Convert the matlab-format mxArray to mat.
|
|
|
Convert the matlab-format mxArray to short.
|
|
|
Convert the matlab-format mxArray to smat.
|
|
|
Convert the matlab-format mxArray to svec.
|
|
|
Convert the matlab-format mxArray to vec.
|
|
||||||||||||
|
Convert short to the matlab-format mxArray.
|
|
||||||||||||
|
Convert smat to the matlab-format mxArray.
|
|
||||||||||||
|
Convert svec to the matlab-format mxArray.
|
|
||||||||||||
|
Convert vec to the matlab-format mxArray.
|
1.4.4