How to evaluate this expression

4 visualizzazioni (ultimi 30 giorni)
Khandaker Hassin Sadman
Khandaker Hassin Sadman il 8 Apr 2022
Commentato: Steven Lord il 8 Apr 2022
How to evaluate
  1 Commento
Steven Lord
Steven Lord il 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.

Accedi per commentare.

Risposte (1)

Voss
Voss il 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)

Categorie

Scopri di più su Function Creation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by