Changeset 818
- Timestamp:
- 06/05/09 14:46:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/io/SerialWriteData.cpp
r464 r818 51 51 /*Matlab arrays: */ 52 52 mxArray* dataref=NULL; 53 mxArray* tdataref=NULL; 53 54 54 55 /*Branch on the type of data:*/ … … 80 81 81 82 /*data is a double* pointer. Copy into a matrix: */ 82 dataref = mxCreateDoubleMatrix(0,0,mxREAL); 83 mxSetM(dataref,(mwSize)M); 84 mxSetN(dataref,(mwSize)N); 85 mxSetPr(dataref,(double*)data); 83 tdataref = mxCreateDoubleMatrix(0,0,mxREAL); 84 mxSetM(tdataref,(mwSize)N); 85 mxSetN(tdataref,(mwSize)M); 86 mxSetPr(tdataref,(double*)data); 87 88 //transpose 89 mexCallMATLAB(1,&dataref,1,&tdataref, "'"); 86 90 } 87 91 else{
Note:
See TracChangeset
for help on using the changeset viewer.