title: How do I change the text interpreter in sprintf
body: <p>I am writing a script that reads in a directory of files, processes them, and then writes the results back to disk. Since it's a long operation (typically 4000 files or more), I am using the <code>waitbar</code> function to show progress:</p>
  
  <pre><code>files = dir('*.bin');
  h = waitbar(0,sprintf('Processing (0/%u)',K));
  K = numel(files);
  for k = 1:K
      filename = files(k).name;
      waitbar(k/K,h,sprintf('Processing %s (%u/%u)',filename,k,K));
      % do stuff to file and save
  end
  delete(h);
  </code></pre>
  
  <p>That's all well and good, except the filenames all contain underscores, and so when <code>sprintf</code> renders the <code>waitbar</code> label, the TeX interpreter changes them all to subscripts. If I were using the <code>text</code> command for a figure, I'd specify <code>'Interpreter','none'</code>, but <code>sprintf</code> does not appear to have that option.</p>
  
  <p>I know I can globally change the interpreter, but I use the TeX interpreter in other parts of the loop to display annotated data on a figure, so I'd prefer to only change it locally. Is there a way to change the interpreter for just my waitbar title?</p>