Linux Matlab Commands

Published: 04 Aug 2015 Category: linux_study

Comment multi-lines in Matlab: Ctrl+R, Ctrl+T

Launch Matlab:

$ cd /usr/local/bin/
$ sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab Matlab
$ gedit ~/.bashrc
$ alias matlab="/usr/local/MATLAB/R2012a/bin/matlab"

Start MATLAB Without Desktop:

$ matlab -nojvm -nodisplay -nosplash

Matlab + nohup:

runGenerareSSProposals.sh:

#!/bin/sh
cd /path/to/detection-proposals
matlab -nojvm -nodisplay -nosplash -r "startup; callRunCOCO; exit"

runNohup.sh:

time=`date +%Y%m%d_%H%M%S`
cd /path/to/detection-proposals
nohup ./runGenerareSSProposals.sh > runGenerareSSProposals_${time}.log 2>&1 &
echo $! > save_runGenerareSSProposals_val_pid.txt