% prepdata.m
%load digits_1; afile = 'digit1a2x10int16.dat'; bfile = 'digit1b2x10int16.dat'
load digits_2; afile = 'digit2a2x10int16.dat'; bfile = 'digit2b2x10int16.dat'
% minmax(X-round(X))
% minmax(Y-round(Y))
X = int16(X')
Y = int16(Y')
plot(X(1,:), X(2,:), '-o', Y(1,:), Y(2,:), '-x')
axis equal

if 0
	fp = fopen(afile, 'w')
	fwrite(fp, X, 'int16')
	fclose(fp)
end

if 0
	fp = fopen(bfile, 'w')
	fwrite(fp, Y, 'int16')
	fclose(fp)
end
