?? time_phase.m
字號:
%==========================================================================
% Name:time_phase.m
%
%==========================================================================
clear;close all,
t=-6:0.01:6;
x=(u(t)-u(t-2));
dw=0.1;
w=-50:dw:50;
phi=-2*w;
%phi=-atan(2*w);%-2*w;
H=exp(j*phi);
h=H*exp(j*w'*t)*dw/(2*pi);
y=0.01*conv(x,h);
y=y([600:1800]);
subplot(221);plot(t,x,'r');grid on;title('The input signal x(t)');axis([-6,6,-0.2,1.2])
subplot(223);plot(t,y,'r');grid on;title('The output signal y(t)');
xlabel('Time t');axis([-6,6,-0.2,1.2])
subplot(222)
plot(t,h),title('The impulse response h(t)');xlabel('Time t'),grid on,
axis([-4,4,-3.5,max(h)])
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -