(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 - The Fusion of Science and Community**

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

Loading...

Similar Threads for Matlab graph | Date |
---|---|

MATLAB Graphing in Matlab | Oct 9, 2017 |

MATLAB Matlab Power Fit on Graph-Codes | Apr 23, 2017 |

Matlab Displaying the Fit Equation On graph. | Apr 2, 2017 |

MATLAB How to extract data from existing JPEG/TiFF graph? | Oct 27, 2016 |

MATLAB How to set zero value boxes transparent in 3D plots? | May 17, 2016 |

**Physics Forums - The Fusion of Science and Community**