Plot function y=(sin(x))/x for pi/100<=x<=10pi using increments of pi/100
76 次查看(过去 30 天)
显示 更早的评论
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.
另请参阅
类别
在 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!