[QUOTE=1...
#!/bin/sh
export LIBXCB_ALLOW_SLOPPY_LOCK=1
matlab -desktop
...
./matlab.sh
The following error appears
./matlab.sh: line 3: matlab: command not found.
How do I solve this problem?[/QUOTE]
The script matlab.sh is trying to execute the command "matlab - desktop". For this to work, matlab would have to be in your path (& the user would have to have the appropriate permissions, etc). I'm betting on the path.
So
- Find matlab (probably use "locate", but if you don't have locate, use "find")
Either- add the directory in which the matlab executable resides to the path
or- edit the script to change "matlab" to "/complete/path/to/matlab"