www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AddingAxisLabelsAndTitlesLearnMLExample.m
%% Adding Axis Labels and Titles %% This example shows % Copyright 2015 The MathWorks, Inc. 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(0.5,-1/3,'{\itNote the odd symmetry.}')