Last change
on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago |
merged trunk-jpl and trunk for revision 13393
|
File size:
567 bytes
|
Line | |
---|
1 | /*!\file MatlabMatrixToSeqMat.cpp
|
---|
2 | */
|
---|
3 |
|
---|
4 | /*Headers:*/
|
---|
5 | /*{{{*/
|
---|
6 | #ifdef HAVE_CONFIG_H
|
---|
7 | #include <config.h>
|
---|
8 | #else
|
---|
9 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #include <mex.h>
|
---|
13 | #include <stdio.h>
|
---|
14 | #include <string.h>
|
---|
15 | #include "../../toolkits/toolkits.h"
|
---|
16 | #include "../../shared/shared.h"
|
---|
17 | #include "./matlabio.h"
|
---|
18 |
|
---|
19 | /*}}}*/
|
---|
20 |
|
---|
21 | SeqMat<double>* MatlabMatrixToSeqMat(const mxArray* dataref){
|
---|
22 |
|
---|
23 | SeqMat<double>* output=NULL;
|
---|
24 |
|
---|
25 | output=new SeqMat<double>();
|
---|
26 | MatlabMatrixToDoubleMatrix(&output->matrix,&output->M,&output->N,dataref);
|
---|
27 | return output;
|
---|
28 |
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.