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일

0 개 추천

You need to use ./, like
y=sin(x).^2./x.^2
HTH

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

질문:

2017년 12월 13일

답변:

2017년 12월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by