Install mlabwrapper for Matlab2010a/b

1. Add Matlab to your path under Environment variables

  • Go to My Computer
  • Press right mouse button
  • Go to Properties, Advanced, Environment variables
  • Highlight Path under (user), press Edit, add the paths of your Matlab 2010a/b executable and license, press Save
  • Add the following variable under (user) pressing New:
    Variable name: MLABRAW_CMD_STR
    Variable value: matlab
    Press Save

2. Go to your Matlab 2010a/b directory, open command window (in Total commander by typing cmd in command line) and type matlab /regserver.

3. Download and install mlabwrapper executable (currently only available for matlab 2010a/b).

  File Modified
File mlabwrap-1.1.win32-py2.6_2010a.exe Mlabwrapper for Matlab 2010a 17-08-2011 by Wiebe de Boer
File mlabwrap-1.1.win32-py2.6_2010b.exe Mlabwrapper for Matlab 2010b 17-08-2011 by Wiebe de Boer
ZIP Archive mlabwrap-1.1.win32.zip Mlabwrapper (non-compiled) 17-08-2011 by Wiebe de Boer

4. Check whether installation succeeded by opening a pythonxy console and typing from mlabwrap import mlab. When no error messages appear, the installation was successful.

Compile mlabwrapper for other Matlab versions

1. Perform the steps 1 and 2 above for the desired matlab version

2. Download wrapper files from openearth site and place them in your python directory (see attachments). Some useful suggestions can be found here.

3. Type the commands:
python setup.py build
python setup.py install

4. Check whether installation succeeded by opening a pythonxy console and typing from mlabwrap import mlab. When no error messages appear, the installation was successful.

  • No labels