MATLAB: How to format an array of values to a specific number of digits

array formatingMATLAB

I've got a 5 X 1 double array that looks like this;
>> Y = [1;2;3;4;5];
>> Y
Y =
1
2
3
4
5
I want to format the contents of Y such that they are;
01
02
03
04
05
Can this be done for an array of values? I've used fprintf for writing formatted data to text file. But it appears this won't work for an array.
Thank you.

Best Answer

Y = [1;2;3;4;5]
out=sprintf('0%d\n',Y)