How do I put plus or minus sign as an x-axis label on a Matlab plot? -


for matlab plots, how place plus or minus sign x tick labels in matlab plot?

currently, i'm using these lines of code obtain plus-minus sign (±) values preceding numerical value on x tick labels.

x_values = ['+/- 1';'+/- 2'];
set(gca,'xticklabel',x_values)

you can insert special characters text using tex, or latex, docs here , here:

\pm used plus/minus


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -