How to evaluate this expression
4 views (last 30 days)
Show older comments
How to evaluate
1 Comment
Steven Lord
on 8 Apr 2022
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Answers (1)
Voss
on 8 Apr 2022
Here's a list of relevant mathematical operations in MATLAB, for reference:
- Use cos for cosine when the angle is in radians
- Use sin for sine when the angle is in radians
- Use tan for tangent when the angle is in radians
- Use cosd for cosine when the angle is in degrees
- Use sind for sine when the angle is in degrees
- Use tand for tangent when the angle is in degrees
- Use sqrt to take the square root of something
- Use .^2 to square something
- Use .^(1/3) to take the cube root of something
- Use exp to take the exponential of something, e.g., e^(-0.3) is exp(-0.3)
0 Comments
See Also
Categories
Find more on Function Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!