I want to know how to write a matlab function

1 visualización (últimos 30 días)
kay Dee
kay Dee el 17 de Oct. de 2018
Comentada: madhan ravi el 17 de Oct. de 2018
hello i want to write a matlab code that convers sind(120)=0.866025403784439 but not in this format. I want to get it in the format of *sqrt(3)/2* in matlab.
just in case i calculate some other sin(x)'s i manage to convert them into fractional forms
Thanks
  5 comentarios
Adam
Adam el 17 de Oct. de 2018
Editing a question to make it more understandable is encouraged. Begging for accepting answers and votes for answers certainly isn't though!
madhan ravi
madhan ravi el 17 de Oct. de 2018
answers are only accepted only if it works nothing comes for free

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 17 de Oct. de 2018
sym(0.866025403784439)
frac(ans)
  3 comentarios
kay Dee
kay Dee el 17 de Oct. de 2018
Thanks it works
madhan ravi
madhan ravi el 17 de Oct. de 2018
Editada: madhan ravi el 17 de Oct. de 2018
You’re welcome you can vote for the answer too

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by