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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -