function [] = imageData(dataset,index)
%
% function [] = imageData(dataset,index)
%
% draws a point in the 'dataset' at row number 'index'
% as an 8x8 gray scale image
%
% For use in dataset3.txt and dataset4.txt and
% also to visualize the means 'mu' which have
% the same type of structure as datasets but are
% ouput from randInit (which initializes the Gaussians)
% and an EM algorithm (which fits the Gaussians)
%
%

im1 = reshape(dataset(index,:),8,8);
imagesc(im1');
colormap gray


