(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

i have to draw the graph of y=(sin(x)^2)/x^2 on matlab in interval [0,4pi]

2. Relevant equations

3. The attempt at a solution

i defined x and y.

>>x:[0:pi/4:4pi]

but i can't write the equation in matlab fprm...i dont know where to put the dots and brackets.

i tried:

>>sin(x).^2./x.^2

and i just got a straight line, then i tried:

>>sin(x.*x)./(x.*X)

and i also got a striaght line but when i put the function onto the graphics calculator it gives like a mountain shape and i think that's write.

so how do i type the function onto matlab to give the right graph?

can someone please help me?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab - graph of y=(sin(x)^2)/x^2

**Physics Forums | Science Articles, Homework Help, Discussion**