From: Jan Simon on 13 Aug 2010 10:33 Dear Nathan, Of course, trying to create an own function is really helpful for learning Matlab. On the other hand you can look how others have implemented this: Go to the FileExchange pages and search for the term "leap": http://www.mathworks.com/matlabcentral/fileexchange Good luck, Jan |