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?

采纳的回答

Sulaymon Eshkabilov
编辑: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
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 /
Did ypou read Matlab's Onramp already?

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by