Friday, November 22, 2013

Mention Directory/Filename as 02 format

x = 3;

modisFold =  (sprintf('MODIS_july_%02.f/',x))

will result into 'MODIS_july_03/'.


This is a nice trick using sprintf as it avoids need to do for loop like I used to for date<10.

No comments: