# t = 2 s, i = √−1, and 𝜔=120π rad/s. Evaluate the following using MATLAB? Hint: exp(n) is used in MATLAB to evaluate en. (a) e−2𝑡𝑐o𝑠 (𝜔𝑡)

1 view (last 30 days)
Muhammad Kashif on 18 Apr 2022
Commented: Sam Chak on 19 Apr 2022
t = 2 s, i = √−1, and 𝜔=120π rad/s. Evaluate the following using MATLAB? (a) e−2𝑡𝑐o𝑠 (𝜔𝑡)
##### 3 CommentsShowHide 2 older comments
Sam Chak on 18 Apr 2022
Are you trying to tell us that you don't know how to input n because there is no superscript on the "e" in the expression ?
You probably want to ask, "Can I put nothing in the argument?"
exp()

Sign in to comment.

### Answers (1)

James Tursa on 18 Apr 2022
Edited: James Tursa on 18 Apr 2022
I am guessing that the original expression shown is supposed to be interpreted as:
Then take the hint at how to evaluate the part, and I am guessing the hint is supposed to read: exp(n) is used to evaluate
But this is just a guess, and that doesn't explain why there is a definition of i in your assignment. Maybe you can post an image of the actual assignment so we can be sure what is really being asked?
##### 1 CommentShowHide None
Sam Chak on 19 Apr 2022
@James Tursa, guess you're right.
t = 2;
omega = 120*pi;
y = exp(- 2*t)*cos(omega*t)
But still, I wonder why is given.

Sign in to comment.

R2007b

### Community Treasure Hunt

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

Start Hunting!