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