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