MATLAB Answers

𝑦 = 2𝑐𝑜𝑠3𝑥

11 views (last 30 days)
qwe asd
qwe asd on 16 May 2021
Answered: Image Analyst on 16 May 2021
How I do a graph of 𝑦 = 2𝑐𝑜𝑠3𝑥 ?

Answers (2)

Alan Stevens
Alan Stevens on 16 May 2021
help plot

Image Analyst
Image Analyst on 16 May 2021
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);

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!