MATLAB Answers

How do I enter f(x) = sin((π/2) x) + sin((2/5)πx) over the interval [0,40]

5 views (last 30 days)
Jessica Guadagno
Jessica Guadagno on 21 Sep 2021
Answered: KSSV on 21 Sep 2021
How do I enter this into matlab

Answers (1)

KSSV
KSSV on 21 Sep 2021
x = linspace(0,40,100) ;
f = sin(pi/2*x)+sin(2/5*pi*x) ;
plot(x,f)

Tags

Community Treasure Hunt

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

Start Hunting!