How to code for this equation in Matlab

f(x)=2*e^jwt

1 Comment

You have a function of x on the left hand side, but there is not x on the right hand side. What is your intention?

Sign in to comment.

 Accepted Answer

Assuming that f(x) is really supposed to be f(t):
f = @(t)exp(j*w*t);
But, you will need to have w defined prior to this.

More Answers (1)

Community Treasure Hunt

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

Start Hunting!