?? exp2_5_.m
字號:
%圖形文字標(biāo)示命令的使用
clear
close all
clc
t=[0:pi/20:5*pi];
plot(t,sin(t),'r:*')
axis([0 5*pi -1.5 1.5 ])
%給x軸和y軸命名
xlabel('t(deg)')
ylabel('magnitude')
%給圖形加標(biāo)題
title('sine wave from zero to 5\pi')
%在指定位置創(chuàng)建說明性文字
text(pi/2,sin(pi/2),'\bullet\leftarrow The sin(t) at t=2')
%輸入特定的字符
%\pi
%\alpha
%\beta
%\leftarrow
%\rightarrow
%\bullet(點號)
hold on
plot(t,cos(t))
%區(qū)分圖形上不同的曲線
legend('sin(t)','cos(t)')
%用鼠標(biāo)在特定位置輸入文字
gtext('文字標(biāo)示命令舉例')
hold off
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -