To use MATLAB® on Linux (tested with Ubuntu)


  1. Install MATLAB® (Assume that your MATLAB installation directory is /home/username/ MATHWORKS_R2011A).
  2. Make sure that C Shell has already been installed on your Linux. To install C Shell on Ubuntu, type the following command in the terminal
     ~$ sudo apt-get install csh 

  3. Create a link to the MATLAB® executable file in /usr/bin if it does not exist, and type the following commands in the terminal
     ~$ sudo -i 
     ~$ cd /usr/bin 
     ~$ ln -s /home/username/MATHWORKS_R2011A/bin/matlab matlab

  4. Use a text editor to open the magicdraw file in the bin folder in the MagicDraw installation directory. Type the following text under the line that contains cd"$APP_HOME" to add the MATLAB® bin folder to LD_LIBRARY_PATH of Java and save the magicdraw file.
  • On Linux 64-bit, type: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/MATHWORKS_R2011A/bin/glnxa64:/home/username/MATHWORKS_R2011A/sys/os/glnxa64


LD_LIBRARY_PATH added to the MagicDraw file.