MATLAB Answers

How do you input f(x)=e^-0.5cos(4x)?

9 views (last 30 days)
Pu Andaes
Pu Andaes on 18 Sep 2020
Edited: Vasishta Bhargava on 18 Sep 2020
i tried doing f=exp^(-0.5.*x) .*cos(4.*x)
but somehow it still displays as error
any help?

  0 Comments

Sign in to comment.

Answers (1)

Vasishta Bhargava
Vasishta Bhargava on 18 Sep 2020
Edited: Vasishta Bhargava on 18 Sep 2020
% if true
% code
% end
x= 1:1:45;
f = exp(-0.5*x).*cos(4*x);

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by