Printing insignificant zeros to a text file
Hi,
I have the following program which prints filenames of images 001.jpg
to 025.jpg. When i execute the program it's printing something like
this in the textfile
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
I wanted it to be printed as
001.jpg
002.jpg
003.jpg
004.jpg
005.jpg
fid1=fopen('Class1.txt','wt');
for i = 001:025
Class1{i}=[num2str(i) '.jpg'];
fprintf(fid1,'%s\n',Class1{i});
Is there a way I can do it?.
Regards
Joshua
.
Relevant Pages
- Re: Printing insignificant zeros in text file
... When i execute the program it's printing something like ... this in the textfile ... > Ken Fleisher wrote: ... (comp.soft-sys.matlab) - Re: Has anyone tried Walgreens Drugstore internet printing?
... Color and quality was good but, ... They did lousy with 8x10 printing in regards to cropping. ... you should manually crop your original images for 8x10 ... Their clerks aren't very knowledgeable about their machines. ... (rec.photo.digital) - Re: how print screen w/o pasting into Word?
... Printing a text screen to a printer that supports text (as virtually every ... accepting graphics without using a printer driver. ... All images are scaled, and word will resize the image to fit the ... As with anything you download from the internet, ... (microsoft.public.win2000.general) - New toy in town
... I assumed that this Sony would make best video capture efforts, ... and 75 sheet printing paper hidden inside. ... The captured images are stored at 640x480 with 24-bit colors. ... by inserting a recorded 3.5-inch floppy disk into the printer. ... (comp.sys.ibm.ps2.hardware) - Re: Questions on Printing Photographs With Cannon PIXMA
... Make sure you get the most out of your IP5200 and use Canon OEM ink that is controlled by Canon and formulated the design and engineering of the printer. ... If you do need photo paper go to Costco and get Kirkland full sheet photo glossy. ... for routine printing, but may be worth it for a "final" important printing. ... Also, once you find a group of settings for most of your "normal" images, ... (comp.periphs.printers) |
|