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