Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I'm new to MATLAB and I'm facing a problem now. Does anyone knows the code that can do 'exp' function in MATLAB? Because im not allowed to use exp inbuilt function, but instead i have to write a code that do the same function


What I have tried:

Sum=Sum+sequence(jj)*exp(-2*pi*j*(jj-1)*(k-1)/nfft), this is the equation that has exp inbuilt function that im not supposed to use. Are there any codes that can do the exp function without affecting the results of this equation? Thank you in advance.
Posted
Updated 13-Mar-19 22:03pm

1 solution

You might use the Taylor series, has someone already did Writing a taylor series function for e^x - MATLAB Answers - MATLAB Central[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900