Help needed plotting a graph

22 次查看(过去 30 天)
The task is to plot a graph of y=sinx^2 divided by x^2 this is the code i've done but it doesnt produce a graph x=linspace(0,4*pi); y=sin(x).^2/x.^2; plot(x,y)

采纳的回答

Honglei Chen
Honglei Chen 2017-12-13
You need to use ./, like
y=sin(x).^2./x.^2
HTH

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by