MATLAB: Create a cell array of numbers

cell arraysnumber

hi
i need to create a cell array with numbers from 0000-1000
notice that numbers must be in a 4-digit format
how can i do this?
thanks

Best Answer

str = sprintf('%04d\n',0:1000)