I want to know how to write a matlab function

조회 수: 2 (최근 30일)
kay Dee
kay Dee 2018년 10월 17일
댓글: madhan ravi 2018년 10월 17일
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
Adam
Adam 2018년 10월 17일
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 2018년 10월 17일
answers are only accepted only if it works nothing comes for free

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2018년 10월 17일
sym(0.866025403784439)
frac(ans)
  댓글 수: 3
kay Dee
kay Dee 2018년 10월 17일
Thanks it works
madhan ravi
madhan ravi 2018년 10월 17일
편집: madhan ravi 2018년 10월 17일
You’re welcome you can vote for the answer too

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by