Date: Jun 30, 2013 9:03 PM
Author: Jixin
Subject: What's the difference of \\ and \ when used in sprintf?


I tried to generate a file name by sprintf as:

filename = sprintf('D:\...\%03d', 1);

and it doesn't work.
Then I changed it into:

filename = sprintf('D:\\...\\%03d',1);

and it works.
So what's happening here?
Thanks guys