How do I write this Natural Log in MATLAB?
2 views (last 30 days)
Show older comments
Patrick Dorn
on 14 Mar 2021
Commented: Patrick Dorn
on 14 Mar 2021
Hi, I need to write the following log (attached as a screenshot) in MATLAB.

This is how I have tried to write it but it is returning a wrong value. Would anybody be able to tell me what is wrong with my code?
Sg2 = log(1-(Cdo-u*Clmin)/(T/W - u * Clrot))
0 Comments
Accepted Answer
Image Analyst
on 14 Mar 2021
Did you try it with the proper parentheses?
Sg2 = log(1-(Cdo-u*Clmin) / ((T/W - u) * Clrot))
What values are you passing in? What do you expect as a result and what are you getting? Answer after reading the posting guidelines:
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!