Results 1 to 4 of 4

Thread: How to begin with MATLAB?

  1. #1
    Join Date
    May 2009
    Posts
    543

    How to begin with MATLAB?

    This document describes how to install Linux version of MATLAB version 6.5 on a FreeBSD system. The software works pretty well, except for the JVM, Java virtual machine. The Linux version of MATLAB would be able to prearranged straight from the MathWorks. First confirm that you have the certificate file to build it.

    To install MATLAB, do the following:

    1. Insert the installation CD and mount it. Log superuser (root), as recommended by the installation procedure. To launch the installation type:
    # / Compat / linux / bin / sh / cdrom / install

    Tip: The installer is graphical. If you get an error saying that the program is unable to open an instance of display, type setenv HOME ~ user.

    2. When prompted for the root directory for MATLAB, type: / compat / linux / usr / local / matlab.

    Tip: To facilitate the subsequent installation and reducing unnecessary keystrokes, type at the prompt the shell this: set = Matlab / compat / linux / usr / local / matlab

    3. Edit the license file as specified when obtaining the license of MATLAB.

    Tip: You can prepare in advance this file using your favorite editor, and copying as $ MATLAB / license.dat before the installer will ask you to edit.

    4. Complete the installation process.

    At this point your MATLAB installation is complete. Rajoutent the following steps needed to integrate it into your FreeBSD system

  2. #2
    Join Date
    May 2009
    Posts
    543

    Re: How to begin with MATLAB?

    1. Create symbolic links to the procedures of license manager:
    Code:
     # Ln-s $ MATLAB / etc / lmboot / usr / local / etc / lmboot_TMW
     # Ln-s $ MATLAB / etc / lmdown / usr / local / etc / lmdown_TMW
    2. Create a startup file named / usr / local / etc / rc.d / flexlm.sh. The example below is a modified version of the $ MATLAB/etc/rc.lm.glnx86 provided. The changes concern the location of files, and launch the license manager under Linux emulation.
    Code:
    # / Bin / sh
     case "$ 1" in
       home),
             if [-f / usr / Local / etc / lmboot_TMW] Then
                   / Compat / linux / bin / sh / usr / local / etc / lmboot_TMW-u user & & echo 'MATLAB_lmgrd'
             fi
             ;;
       stop)
         if [-f / usr / local / etc / lmdown_TMW] Then
                 / Compat / linux / bin / sh / usr / local / etc / lmdown_TMW> / dev / null 2> & 1
         fi
             ;;
       *)
         echo "Usage: $ 0 {start | stop}"
         exit 1
         ;;
     esac
    
     exit 0
    3. Start the license manager with the command:
    Code:
     # / Usr / local / etc / rc.d / home flexlm.sh

  3. #3
    Join Date
    May 2009
    Posts
    539

    Re: How to begin with MATLAB?

    Linking the Java Runtime Environment : Change the link to the Java Runtime Environment (JRE) for a link operating correctly under FreeBSD:
    Code:
     # Cd $ MATLAB/sys/java/jre/glnx86 /
     # Unlink jre; ./jre1.1.8 ln-s. / Jre
    Creating a startup procedure for MATLAB : Place the following startup procedure in the directory / usr / local / bin / matlab:
    Code:
     # / Bin / sh
     / Compat / linux / bin / sh / compat / linux / usr / local / matlab / bin / matlab "$ @"
    Then type the command chmod + x / usr / local / bin / matlab.

  4. #4
    Join Date
    May 2009
    Posts
    529

    Re: How to begin with MATLAB?

    Create a shutdown procedure for MATLAB : The following is needed to correct the fact that MATLAB can not be properly shut down.

    1. Create a file $ MATLAB / toolbox / local / finish.m, and put the following line:
    Code:
     !  $ MATLAB / bin / finish.sh
    Hint: In the same directory, you will find the files and finishsav.m finishdlg.m, which allow you to save the environment before exiting. If you use one of them, insert the above line after the save command.

    2. Create a file $ MATLAB / bin / finish.sh, containing the following:
    Code:
     # / Usr / compat / linux / bin / sh
     (Sleep 5; matlab_helper killall -1) &
     exit 0
    3. Make the file executable:
    Code:
     # Chmod + x $ MATLAB / bin / finish.sh

Similar Threads

  1. How to convert MATLAB to C?
    By The Recruiter in forum Software Development
    Replies: 6
    Last Post: 17-04-2010, 06:15 AM
  2. Matlab 7.9 crashes under Windows 7
    By Chandranath in forum Windows Software
    Replies: 5
    Last Post: 13-01-2010, 03:58 AM
  3. Probabilities in matlab
    By Brunoz in forum Software Development
    Replies: 5
    Last Post: 05-01-2010, 11:03 AM
  4. Free MATLAB CD and Technical Kit
    By Shikhar in forum Ebooks
    Replies: 3
    Last Post: 06-03-2009, 08:35 PM
  5. Calling winrar from matlab
    By go raiden in forum Software Development
    Replies: 5
    Last Post: 02-09-2008, 08:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,997,610.93021 seconds with 17 queries