#!/bin/sh j=1000 counter=-200 while [ $counter -lt 200 ] do i=$counter/1000 echo $i unset DISPLAY matlab >&! matlab.out <