Help needed plotting a graph

조회 수: 22 (최근 30일)
Umair Bux
Umair Bux 2017년 12월 13일
답변: Honglei Chen 2017년 12월 13일
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일
You need to use ./, like
y=sin(x).^2./x.^2
HTH

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by