csci5451/assignments/04/plot.sh
2023-12-10 15:40:31 -06:00

11 lines
229 B
Bash
Executable file

#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "usage: ./plot.sh <data file>";
echo " NOTE: 'clusters.txt' must be in working directory.";
exit 1;
fi
octave-cli --eval "plot_clusters2D('$1', 'clusters.txt', 'centroids.txt')"