𝑦 = 2𝑐𝑜𝑠3𝑥

26 次查看(过去 30 天)
qwe asd
qwe asd 2021-5-16
How I do a graph of 𝑦 = 2𝑐𝑜𝑠3𝑥 ?

回答(2 个)

Image Analyst
Image Analyst 2021-5-16
numPoints = 1000;
x = linspace(-3*pi, 3 * pi, numPoints);
y = 2 * cos(3 * x);
plot(x, y, 'b-', 'LineWidth', 2);
grid on;
xlabel('x', 'FontSize', 18);
ylabel('y', 'FontSize', 18);

Alan Stevens
Alan Stevens 2021-5-16

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by