Idx_dataset="1 2 3 4 5 6 7 8 9 10 11 12 13"

for idx in $Idx_dataset
do
	/usr/local/MATLAB/R2012a/bin/matlab -r "cd ..; datasetId = $idx; main_DX_advanced; exit;" &
done

Idx_dataset="1 2 3 4 5 6 7 8 9 10 11 12 13"

for idx in $Idx_dataset
do
    /usr/local/MATLAB/R2012a/bin/matlab -r "cd ..; datasetId = $idx; main_DX_advanced; exit;" &
done

Rewrite the script of SX_advanced
Rewrite the script of SX_advanced
