Inputting the function Sin(2x)Cos^2(0.5x)

I am learning to use Matlab and am having trouble inputting the function above. I've used the "." functoin but i keep getting an error while trying to comput a plot.

Antworten (1)

Stephen23
Stephen23 am 21 Okt. 2020
Bearbeitet: Stephen23 am 21 Okt. 2020

0 Stimmen

x = linspace(0,2*pi,50);
y = sin(2*x).*cos(0.5*x).^2;
plot(x,y)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 21 Okt. 2020

Bearbeitet:

am 21 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by