How to find the angle in MatLab

7 visualizaciones (últimos 30 días)
Liam Crocker
Liam Crocker el 9 de Ag. de 2020
Comentada: Liam Crocker el 11 de Ag. de 2020
Hey so I'm new to Matlab and I've been given this question and I have to find out the angle. I found out the Hypotenuse by doing simple pythag in Matlab, however I can't seem to figure out how I would find the angle. I have looked up guides and such before on the site and they don't make a lot of sense. I think atan is the function I would use. I've tried atan (200/20) and that hasn't worked. Do I need to make the 3 points matricies? I know the angle by doing the process manually with a calculator, but how to find the angle in Matlab is what I am unsure of how to do. Any help is greatly appreciated, apologies for making you help out a newbie with this software!
Thanks Liam
  2 comentarios
Proman
Proman el 9 de Ag. de 2020
Use atand(20/200) if it is in degree and if not, I go Alan Stevens. Multiply it by pi/180 and use atan(20/200)
Liam Crocker
Liam Crocker el 11 de Ag. de 2020
Thank you! Very helpful, I have no idea why my original planning didnt work!

Iniciar sesión para comentar.

Respuesta aceptada

Alan Stevens
Alan Stevens el 9 de Ag. de 2020
atan(200/20) works perfectly well in Matlab. Note that the result is in radians. If you want the angle in degrees then multiply Matlab's angle by 180/pi.
  1 comentario
Liam Crocker
Liam Crocker el 11 de Ag. de 2020
Thank you! Very helpful, I have no idea why my original planning didnt work, I thought it would just be the same as it would be through a calculator

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by