MATLAB Answers

Function to make a variable circular

7 views (last 30 days)
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!!!

  0 Comments

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 10 Oct 2014
mod(17,12)

  0 Comments

Sign in to comment.

More Answers (1)

Miguel Lopes
Miguel Lopes on 11 Oct 2014
THANKS

  0 Comments

Sign in to comment.

Sign in to answer this question.