csci5451/assignments/04/plot.sh

11 lines
229 B
Bash
Raw Normal View History

2023-12-10 21:40:31 +00:00
#!/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')"