Effacer les filtres
Effacer les filtres

Approximately equal sign in matlab plot

49 vues (au cours des 30 derniers jours)
Sonima
Sonima le 15 Mai 2017
Modifié(e) : Sonima le 15 Août 2019
Hi! I want to plot approximately equal sign on one axe of my plot in Matlab.

Réponses (1)

dpb
dpb le 15 Mai 2017
Modifié(e) : dpb le 17 Mai 2017
Get pretty close approximation (so to speak :) ) that way...
hAx=axes;
xlim([0,27])
set(hAx,'xtick',[0 15 25])
hT=text(7.5, 0.0, '\approx', ...
'fontsize',14,'fontweight','bold', ...
'rotation',90,'horizontalalign','center');
produces
You'll have to rig up the actual axis limits it you want the asymmetrical ticks vis a vis position. Depending on what you actually have, may be able to just use 'xticklabel' with appropriate values at existing tick locations.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by