How to evaluate this expression

4 次查看(过去 30 天)
How to evaluate
  1 个评论
Steven Lord
Steven Lord 2022-4-8
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.

请先登录,再进行评论。

回答(1 个)

Voss
Voss 2022-4-8
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)

类别

Help CenterFile Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by