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 Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by