标签: matlab plot transform fft
我想绘制函数的傅里叶变换。我写下了这个:
t=0:10 g=-1*(exp(-t)+t-1); g1=fft(g); x=-2:0.01:2; plot(x,abs(g1))
事实证明没有情节,也没有报道错误。请问错误在哪里? 谢谢。