How do I force matlab to return multiple solutions for a periodic function?

For example: cosd(1) and cosd(359) are both equal to 0.9998, however, matlab will only return "1" for the equation acosd(0.9998). How do you get matlab to return 359 for acosd(0.9998)

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 30 日
You can find yourself all the other solutions, Matlab gets the one in the intervall [0 180], in your case the solution is 1. The other solutions are:
-1+k*180
1+k*180

カテゴリ

ヘルプ センター および File ExchangeStatics and Dynamics についてさらに検索

タグ

質問済み:

2016 年 3 月 30 日

回答済み:

2016 年 3 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by