
Preparing Graphs for Presentation
Finally, add text annotations, axis labels, and a title. You can add the title and
axis l abels u s ing th e followin g commands:
title (
'y = 1.5cos(x) + 4e^{-0.01x}cos(x) + e^{0.07x}sin(3x)')
xlabel
('X Axis')
ylabel
('Y Axis')
Note that the text string p assed to the title command uses T
E
Xsyntax
to produce the exponents. See “Information About Using T
E
X” in the Text
Properties page in the M ATLAB Function Reference documentation about
using T
E
X syntax to produce mathematical symbols.
3-41
Komentarze do niniejszej Instrukcji