Help needed plotting a graph

16 ビュー (過去 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 Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by