function showNumber(n)
% Display n, a positive integer, in dot matrix form

close all
figure
axis equal off
hold on
set(gcf,'color','w')

%Convert n to a vector of digits
v= [];
while n>0
v= [rem(n,10) v];
n= floor(n/10);
end

%Display the digits in v
D = TheDigits; % D{k} is matrix encoding digit k
for k=1:length(v)
index= v(k);
if index==0
index= 10;
end
drawDigit(k,1,1,D{index})
end

hold off