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.

답변 (1개)

Stephen23
Stephen23 2020년 10월 21일
편집: Stephen23 2020년 10월 21일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

2020년 10월 21일

편집:

2020년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by