?? ex030300.m
字號:
% 第三章: 例 3.3:
%
w = [0:1:500]*pi/500; % 把[0, pi] 軸分為501點.
X = exp(j*w) ./ (exp(j*w) - 0.5*ones(1,501));
magX = abs(X); angX = angle(X);
realX = real(X); imagX = imag(X);
subplot(2,2,1); plot(w/pi,magX); grid
xlabel(''); title('幅度部分'); ylabel('幅值')
subplot(2,2,3); plot(w/pi,angX); grid
xlabel('以pi為單位的頻率'); title('相角部分'); ylabel('弧度')
subplot(2,2,2); plot(w/pi,realX); grid
xlabel(''); title('實部'); ylabel('實部')
subplot(2,2,4); plot(w/pi,imagX); grid
xlabel('以pi為單位的頻率'); title('虛部'); ylabel('虛部')
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -