Plot function y=(sin(x))/x for pi/100<=x<=10pi using increments of pi/100
76 ビュー (過去 30 日間)
古いコメントを表示
Alexander Ashari
2021 年 3 月 27 日
コメント済み: Muhamad Khaleesh Mirza
2022 年 9 月 8 日
How do we write in this on MATLAB?
1 件のコメント
採用された回答
Sulaymon Eshkabilov
2021 年 3 月 27 日
編集済み: Sulaymon Eshkabilov
2021 年 3 月 27 日
% Start rightaway by defining the variable x and compute it
x = pi/100:pi/100:10*pi;
y = sin(x)./x;
% plot
plot(x, y) % You may need to adjust plotted data line type, color, marker type, etc.
その他の回答 (1 件)
Jan
2021 年 3 月 27 日
編集済み: Jan
2021 年 3 月 28 日
"pi/100<=x<=10pi using increments of pi/100"
x = pi/100:pi/100:10*pi;
The rest is trivial. Please try it. In case of problems post your code and an explanation of the errors.
If you want to divide one vector by another one elementwise, use ./ instead of /
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!