plotting problem: getting empty graph window

2 次查看(过去 30 天)
I want to draw this
cos(8*pi*x)/(1+x^2) for x in [-1, 1]
but I get empty graph. How can I correct this?

回答(1 个)

Stephan
Stephan 2020-11-10
fun = @(x) cos(8*pi.*x)./(1+x.^2)
fplot(fun,[-1, 1])

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by