I run a Matlab script `main.m` in the HPC of my university. 
To run the script I qsub in the terminal the following bash file

```
#$ -S /bin/bash
#$ -l h_vmem=5G
#$ -l tmem=5G
#$ -l h_rt=360:0:0
#$ -cwd
#$ -j y
#$ -R y
#$ -N fake1
date
hostname
/.../matlabR2016b/bin/matlab -nodisplay -nodesktop -nosplash < main.m

```

In order to fix a Matlab bug (see [here](https://fr.mathworks.com/support/bugreports/1539123)), I need to set TZ before calling Matlab. I tried to insert 

```
setenv TZ America/Detroit

```

between hostname and the last line. However, it tells me command not found. How can I fix it?