title: MATLAB num2str format
body: <p>I'm storing variable values in MATLAB and putting one of the variable values as part of the file name . e.g. <code>"Error=1e-003.mat"</code>, however different version of MATLAB gives me different format when I'm converting numbers to string using <code>num2str</code> command. The number <code>1e-3</code>, MATLAB2011 gives me <code>1e-003</code> and MATLAB2012 gives me <code>1e-03</code>. </p>
  
  <p>This runs into trouble when I try to load a batch of files with a mix of those two format. Does anyone know a way to add a zero or delete a zero for the exponent so the names are consistent? Or any other ways to solve this problem?</p>