#! /bin/bash
#
#  Have to invoke R2024b to get Image Toolbox.
#
/usr/local/MATLAB/R2024b/bin/matlab -nodisplay -nosplash -nodesktop -batch \
  "run('bwlabel_test.m');exit;" > bwlabel_test.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
#
echo "Normal end of execution."
