Getting Started
轴的标签与标题
用xlabel, ylabel, 及zlabel 命令添加x-,y-,z-等标签。用title 命令在图象顶部加标题,用text 函数在图象中任何部位添加文本。TeX标记的子集则产生希腊字母。可以交互地设置这些选项。详见图形的编辑。
t = -pi:pi/100:pi;
y = sin(t);
plot(t,y)
axis([-pi pi -1 1])
xlabel('-\pi \leq {\itt} \leq \pi')
ylabel('sin(t)')
title('Graph of the sine function')
text(1,-1/3,'{\itNote the odd symmetry.}')