[Matlab] Use Plain Text in labels and legends
Source
Matlab Help. Search for keyword 'interpreter'.Description
To print the labels and the legends in plain text such that `_' and `^' will not be transcribed to subscript and superscript specifier.Syntax
% Interpreter_type: 'latex' | {'tex'} | 'none'set(handle, 'Interpreter', Interpreter_type );
Code
h_label = xlabel('MY_LABEL');set(h_label, 'Interpreter', 'none');
h_legend = legend('LEG_1', 'LEG_2');
set(h_legend, 'Interpreter', 'none');