- #1
sara_87
- 763
- 0
Homework Statement
i have to draw the graph of y=(sin(x)^2)/x^2 on MATLAB in interval [0,4pi]
Homework Equations
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 don't 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?