MATLAB: Does MATLAB produce overlapping text and equations when using the LaTex interpreter in MATLAB R2011a Prerelease

intepreterlatexMATLAB

The displayed text overlaps when I use the LaTex interpreter within MATLAB R2011b Prerelease on Maci64 for text and mathematical symbols on a figure within a LaTex math operator '$ $'. I enclosed the text within the LaTex math mode using the '\mbox' tag.
For example, the issue can be reproduced by running the following command:
set(title('$\mbox{Graph of } y=f(x)$','FontSize',14), 'interpreter', 'latex');
set(xlabel('$\mbox{Independent variable} x$','FontSize',14), 'interpreter', 'latex');
set(ylabel('$\mbox{Independent variable} y$','FontSize',14), 'interpreter', 'latex');

Best Answer

This issue has been resolved as of Release 2013a (R2013a). For previous product releases, read below for any possible workarounds:
We have identified this as a bug in the R2011b Prerelease on Maci64 with OS X Lion.
There is a workaround to this issue. Instead of enclosing the entire text into the LaTex math mode operator '$ $', consider enclosing only equations.
For example, instead of writing
set(xlabel('$\mbox{Independent variable}...
x$','FontSize',14), 'interpreter', 'latex');
write it as,
set(xlabel('Independent variable...
$x$','FontSize',14), 'interpreter', 'latex').