I am working on some plots in Matlab, where I am using the filename as the title of the plot. In many of the files I am using underscores (_) as separator, and the result is that Matlab creates a subscript.
So for a file called b_staccato_004, I get a title b~s~taccato~0~04.
After some googling I found that this is because Matlab per default treats such text strings as LaTeX code. The solution is to use the interpreter message locally:
title(filename, 'interpreter', 'none')
or it can be set globally using:
set(0, 'DefaulttextInterpreter', 'none')