#! /bin/bash
#
matlab -nodisplay -nosplash -nodesktop -batch \
  "run('bulgaria_plot.m');exit;" > bulgaria_plot.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
#
gnuplot < bulgaria_commands.txt
#
echo "Normal end of execution."
