求Matlab的运行结果,谢谢大家了!Dt=0.00005;t=-0.005:Dt:0.005; xa=exp(-1000*abs(t)); Ts=0.0002;n=-25:1:25; x=exp(-1000*abs(n*Ts));K=500;k=0:1:K; w=pi*k/K; X=x*exp(-j*n'*w); X=real(X); w=[-fliplr(w),w(2:K+1)]; X=[fliplr(X),X(2:K+1)]; f
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 21:40:14
求Matlab的运行结果,谢谢大家了!Dt=0.00005;t=-0.005:Dt:0.005; xa=exp(-1000*abs(t)); Ts=0.0002;n=-25:1:25; x=exp(-1000*abs(n*Ts));K=500;k=0:1:K; w=pi*k/K; X=x*exp(-j*n'*w); X=real(X); w=[-fliplr(w),w(2:K+1)]; X=[fliplr(X),X(2:K+1)]; f
求Matlab的运行结果,谢谢大家了!
Dt=0.00005;t=-0.005:Dt:0.005;
xa=exp(-1000*abs(t));
Ts=0.0002;n=-25:1:25;
x=exp(-1000*abs(n*Ts));
K=500;k=0:1:K;
w=pi*k/K;
X=x*exp(-j*n'*w);
X=real(X);
w=[-fliplr(w),w(2:K+1)];
X=[fliplr(X),X(2:K+1)];
figure(1);
subplot(2,1,1);plot(t*1000,xa);xlabel('t in msec.');ylabel('x_1');
title('Discrete Signal (Fs=5000Hz)');hold on;stem(n*Ts*1000,x);hold off;axis([-5 5 0 1]);
subplot(2,1,2);plot(w/pi,X);xlabel('Freq. in \pi rads');ylabel('X_1(e^j^\omega)');
title('Discrete-time Fourier Transform (Fs=5000Hz)');
Ts=0.001;n=-5:1:5;
x=exp(-1000*abs(n*Ts));
K=500;k=0:1:K;
w=pi*k/K;
X=x*exp(-j*n'*w);
X=real(X);
w=[-fliplr(w),w(2:K+1)];
X=[fliplr(X),X(2:K+1)];
figure(2);
subplot(2,1,1);plot(t*1000,xa);xlabel('t in msec.');ylabel('x_2');
title('Discrete Signal (Fs=1000Hz)');hold on;stem(n*Ts*1000,x);hold off;axis([-5 5 0 1]);
subplot(2,1,2);plot(w/pi,X);xlabel('Freq. in \pi rads');ylabel('X_2(e^j^\omega)');
title('Discrete-time Fourier Transform (Fs=1000Hz)');
我要运行后得到的两张图片.在线等啊~~
求Matlab的运行结果,谢谢大家了!Dt=0.00005;t=-0.005:Dt:0.005; xa=exp(-1000*abs(t)); Ts=0.0002;n=-25:1:25; x=exp(-1000*abs(n*Ts));K=500;k=0:1:K; w=pi*k/K; X=x*exp(-j*n'*w); X=real(X); w=[-fliplr(w),w(2:K+1)]; X=[fliplr(X),X(2:K+1)]; f
怎么?你的Matlab出问题了?那好吧.
我上传一张图片.
上面两个是Figure1,下面两个是Figure2