试用MATLAB求单边指数数信号f(t)=e^-atu(t),(α取大于0的数)的傅立叶变换,并画出其波形;
ft=sym('exp(-a*t)*heaviside(t)');
fw=fourier(ft);
subplot (211)
ezplot ( abs ( fw )), grid on
title ('幅度谱')
phase = atan ( imag ( fw )/ real ( fw ));
subplot (212)
ezplot ( phase ); grid on
title ('相位谱')
这个打出来不对,哪里有问题呢。