wiki:howto/MEX_Compile

Version 1 (modified by welsh, 11 years ago) (diff)

--

Compiling Mex in Matlab for WARPLab

MEX is short for "Matlab EXecutable" and allows users to create programs within C or C++ that can be executed from and share data with Matlab. For more information on MEX, please refer to the Matlab Documentation on MEX.

Within WARPLab we have implemented some functionality in MEX, like our WARPLab MEX UDP Transport. While we provide a Windows 7 Professional 64-bit executable within the repository, this will not necessarily be compatible with your system and therefore it becomes necessary to set up an environment where you can compile MEX code on your system.

This how-to will go through the steps to allow your Windows machine to compile MEX code. As of WARPLab version 7.3.0, the WARPLab MEX UDP Transport only supports the Windows operating system and relies on Windows libraries for socket and timing support.

Windows Operating Systems

NOTE: These steps were completed on a Windows 7 Professional 64-bit system. There may be some variances for other versions of Windows. If you find any discrepancies, please let us know.

Installing Microsoft Visual Studio

TBD

Setting up the Matlab environment for compiling MEX

TBD

Compiling MEX

TBD

Attachments (4)

Download all attachments as: .zip