Re: Using Mathlink to call Matlab from Mathematica front end
- To: mathgroup at smc.vnet.net
- Subject: [mg90451] Re: Using Mathlink to call Matlab from Mathematica front end
- From: Jaewon Jang <jaewonj at wolfram.com>
- Date: Thu, 10 Jul 2008 06:32:22 -0400 (EDT)
- References: <g4smdk$4t$1@smc.vnet.net>
Pratip, I have sent Visual Studio .Net project files (engine.sln and engine.vcproj) to your personal email account. Go ahead and place them into mEngine\mEngineSource directory. To compile the source code, modify vc project depending on Mathematica and Matlab installation directories on your machine. I assume you have installed Mathematica 5.2 in "C:\Program Files\Wolfram Research\Mathematica\5.2" directory and Matlab in "C:\Program Files\MATLAB\R2007b" folder. (1) Configuration Properties --> C/C++ --> General --> Additional Include Directories -- let visual studio know where to find mathlink.h and engine.h (2) Configuration Properties --> Linker--> General --> Additional Library Directories -- let visual studio know where to fine MathLink and Matlab C Engine libraries. (3) Configuration Properties --> Linker--> Input --> Additional Dependencies -- libeng.lib, libmx.lib, and libmat.lib may have different names in version R2007b. (4) Configuration Properties --> Build Events --> Pre-Build Event --> Command Line -- To convert .tm to .c using mprep.exe Hope this helps. --Jae