Help needed plotting a graph

22 Ansichten (letzte 30 Tage)
Umair Bux
Umair Bux am 13 Dez. 2017
Beantwortet: Honglei Chen am 13 Dez. 2017
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)

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by