Function to make a variable circular

1 回表示 (過去 30 日間)
Miguel Lopes
Miguel Lopes 2014 年 10 月 10 日
回答済み: Miguel Lopes 2014 年 10 月 11 日
For instance, if you have 3pi and use wrapTo2Pi(3pi) it gives pi.
What I want is exactly this but instead of 0 to 2pi I want from 1 to 12 (months of the year).
So if I I have 17 I want function(17)=5
Is there such a function??
Thank you!!!

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 10 月 10 日

その他の回答 (1 件)

Miguel Lopes
Miguel Lopes 2014 年 10 月 11 日
THANKS

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by