The basic steps are:
- include engine.h - this is an include file that automatically installs with Matlab
- define an "engine" pointer, which opens up a portal between C++ and Matlab
- define Matlab-friendly data elements (mxArrays) for porting your data to Matlab
- stuff data into the Matlab-friendly data elements
- instruct C++ to send the Matlab-friendly data elements to Matlab
- instruct C++ what commands to execute on the data
There are of course more sophisticated options; see Matlab online documentation for more details.
I've put together a brief video outlining the technique. The code shown in the video can be downloaded from here: http://www.box.net/shared/xmazi14uv2
This comment has been removed by the author.
ReplyDelete