Error using plot ; spectrum of function
3 次查看(过去 30 天)
显示 更早的评论
Why I get error using the following code?
syms t w;
syms g h;
g=fourier(exp(-1*(t^2)));
h=abs(g);
w=-10.1:10.1;
plot(w,h);
0 个评论
采纳的回答
Walter Roberson
2017-11-1
plot(w, subs(h))
3 个评论
Walter Roberson
2017-11-1
Worked fine when I tried on the code you posted.
If you have other code for calculating spectra then you should probably post that so we do not have to guess about what might not be working.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!