Technical Solutions

Set splitab as alias


You may want to add the following lines to your .bashrc file:

    #SPLITLAB
    alias splitlab='unset LANG; cd; matlab -nodesktop -r splitlab




Solution Number: 1-VD2UO


Date Last Modified: 17 Oct 2005
Product:   MATLAB®
Reported in Release:   R14SP1
Fixed in Release:   R14SP3
Platform:   Linux
Operating System:   Linux Any
 

Subject:

Why am I unable to select a directory in the "browse directory" dialog displayed by the UIGETDIR function?

Problem Description:

On my Linux machine, I am unable to select any of the directories in the directory selection dialog displayed by the UIGETDIR function. When I click the 'OK' button, I receive the following error message:
File does not exist.

Solution:

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:

There is a bug in MATLAB 7.0 (R14) related to the system's locale, as specified by the LANG environment variable.

To workaround this issue you need to set the LANG environment variable. To do this, unset LANG by running the following command at the tcsh or csh shell prompt before launching MATLAB:

    unsetenv LANG


If using the bash shell, type the following command at the shell prompt before launching MATLAB:

    unset LANG


Note that you can also work around this issue either by typing the filename in the Selection field of the Open File dialog, or by double-clicking on files within the MATLAB Current Directory browser.