
clear
close all

all_examples = 1;
number_examples = -1;

[Xdata, ydata] = import_mnist(all_examples);


sch=0;

for i=1:5
sch = sch+1;
Ximage1 = reshape(Xdata(sch,:),[28 28]);
subplot(2, 5, sch);
%plot transposed data
image(Ximage1');
title(['Label: ',num2str(ydata(sch))]);
sch = sch+1;
Ximage1 = reshape(Xdata(sch,:),[28 28]);
subplot(2, 5, sch);
%plot transposed data
image(Ximage1');
title(['Label: ',num2str(ydata(sch))]);
end
