Filter löschen
Filter löschen

Function to make a variable circular

1 Ansicht (letzte 30 Tage)
Miguel Lopes
Miguel Lopes am 10 Okt. 2014
Beantwortet: Miguel Lopes am 11 Okt. 2014
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!!!

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 10 Okt. 2014

Weitere Antworten (1)

Miguel Lopes
Miguel Lopes am 11 Okt. 2014
THANKS

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by