Watch this Author's files
I aded some more edits, I can't seem to upload them, though.
And now in English. fmt = ['%02d:%02d:%0' totalwidth '.' precision 'f'];
The leading zero also works on fixed-point. For example, if the seconds format is '%07.4f', a seconds value of 0.440 seconds comes out as '00.4400'.
Contact us at files@mathworks.com