ex032100.m
来自「DSP2 using matlab v4」· M 代码 · 共 35 行
M
35 行
% Chapter 3 : Example 3.21% Reconstruction using the stairs and plot functions%figure(1); clf% Discrete-time Signal x1(n) : Ts = 0.0002Ts = 0.0002; n = -25:1:25; nTs = n*Ts;x = exp(-1000*abs(nTs));% Analog Signal reconstruction using stairssubplot(2,1,1); stairs(nTs*1000,x);xlabel('t in msec.'); ylabel('xa(t)')title('Reconstructed Signal from x1(n) using zero-order-hold'); hold onstem(n*Ts*1000,x); hold off%% Analog Signal reconstruction using plotsubplot(2,1,2); plot(nTs*1000,x);xlabel('t in msec.'); ylabel('xa(t)')title('Reconstructed Signal from x1(n) using first-order-hold'); hold onstem(n*Ts*1000,x); hold off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?