Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
http://www.mathworks.com/help/matlab/creating_plots/greek-letters-a...
You can add text to a graph that includes Greek letters and special characters using TeX markup. You also can use
TeX markup to add superscripts, subscripts, and modify the text type and color.
in the title by
x = linspace(0,2*pi);
y = sin(x);
plot(x,y)
title('x ranges from 0 to 2\pi')
1 of 5
10-May-16 2:19 PM
Greek Letters and Special Characters in Graph Text - MATLAB & Sim...
http://www.mathworks.com/help/matlab/creating_plots/greek-letters-a...
t = 1:900;
y = 0.25*exp(-0.005*t);
figure
plot(t,y)
title('Ae^{\alphat} for A = 0.25 and \alpha = -0.0005')
xlabel('Time \musec')
ylabel('Amplitude')
Add text at the data point where t = 300. Use the TeX markup \bullet to add a marker to the specified point and
use \leftarrow to include an arrow pointing to the left. By default, the specified data point is to the left of the text.
txt = '\bullet \leftarrow 0.25t e^{-0.005t} at t = 300';
text(t(300),y(300),txt)
2 of 5
10-May-16 2:19 PM
Greek Letters and Special Characters in Graph Text - MATLAB & Sim...
http://www.mathworks.com/help/matlab/creating_plots/greek-letters-a...
3 of 5
Modifier
Description
Example
^{ }
Superscript
'text^{superscript}'
_{ }
Subscript
'text_{subscript}'
\bf
Bold font
'\bf text'
\it
Italic font
'\it text'
\sl
'\sl text'
\rm
Normal font
'\rm text'
\fontname{specifier}
'\fontname{Courier} text'
\fontsize{specifier}
'\fontsize{15} text'
\color{specifier}
'\color{magenta} text'
\color[rgb]{specifier}
10-May-16 2:19 PM
Greek Letters and Special Characters in Graph Text - MATLAB & Sim...
http://www.mathworks.com/help/matlab/creating_plots/greek-letters-a...
This table lists the supported special characters with the Interpreter property set to 'tex'.
Character
Sequence
Symbol
Character
Sequence
Symbol
Character
Sequence
Symbol
\alpha
\upsilon
\sim
\angle
\phi
\leq
\ast
\chi
\infty
\beta
\psi
\clubsuit
\gamma
\omega
\diamondsuit
\delta
\Gamma
\heartsuit
\epsilon
\Delta
\spadesuit
\zeta
\Theta
\leftrightarrow
\eta
\Lambda
\leftarrow
\theta
\Xi
\Leftarrow
\vartheta
\Pi
\uparrow
\iota
\Sigma
\rightarrow
\kappa
\Upsilon
\Rightarrow
\lambda
\Phi
\downarrow
\mu
\Psi
\circ
\nu
\Omega
\pm
\xi
\forall
\geq
\pi
\exists
\propto
\rho
\ni
\partial
\sigma
\cong
\bullet
\varsigma
\approx
\div
\tau
\Re
\neq
\equiv
\oplus
\aleph
\Im
\cup
\wp
\otimes
\subseteq
\oslash
\cap
\in
\supseteq
\supset
\lceil
\subset
\int
\cdot
\o
\rfloor
\neg
\nabla
\lfloor
\times
\ldots
...
\perp
\surd
\prime
\wedge
\varpi
\0
\rceil
\rangle
\mid
\vee
\langle
\copyright
See Also
plot | text | title | xlabel | ylabel
More About
4 of 5
10-May-16 2:19 PM
Greek Letters and Special Characters in Graph Text - MATLAB & Sim...
5 of 5
http://www.mathworks.com/help/matlab/creating_plots/greek-letters-a...
10-May-16 2:19 PM