# 3.1 Cannot Start MATLAB 4.1.1 on Convex

## Problem

When attempting to invoke MATLAB version 4.1.1 on the Convex Platform (arch c2mp) the following error message is displayed:

  /matlab: Permission denied

even though the $MATLAB/bin/matlab has execute permission.

## Solution

The MATLAB script requires the Korn Shell (usually in /bin/ksh).

    Case 1:  Korn Shell is not available

         If the Korn Shell is not available then modify the
         following files after installation:

              1. Replace line 1 in $MATLAB/bin/matlab with

                     #!/bin/sh

              2. In $MATLAB/bin/.matlabrc.sh, comment out line 315 by
                 placing a '#' sign in front of it.  The new line
                 should read:

                          #ulimit -s unlimited

         If you experience stacksize overflow problems when using
         MATLAB, then do the following:

              1. (csh/tsh) Execute the following commands at the UNIX
                 prompt:

                          limit stacksize unlimited
                          matlab

              2. (sh) Create your own script to invoke MATLAB.  For
                 example:

                          #!/bin/csh
                          #
                          limit stacksize unlimited
                          matlab

    Case 2:  Korn Shell is available, but not in /bin/ksh

         If the Korn Shell is available, but not in /bin/ksh,
         then modify the following file after installation:

              1. Replace line 1 in $MATLAB/bin/matlab with

                     #!path_to_ksh

                     where path_to_ksh is the absolute path to the
                     ksh executable.

    The Korn Shell is available from Convex as a part of the following
    layered product:

  CTB-001 Convex Toolbox

  It includes other utilities such as SCCS, nawk, etc. If you are interested in the Toolbox, please contact your Convex sales representative.

(c) Copyright 1994 by The MathWorks, Inc.