From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mod function
Date: Mon, 14 Mar 2011 18:27:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <illmlo$l7t$>
References: <ilj59c$src$> <iljfa1$7ci$> <ill2kj$1bh$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1300127224 21757 (14 Mar 2011 18:27:04 GMT)
NNTP-Posting-Date: Mon, 14 Mar 2011 18:27:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:715782

"pluton schmidt" wrote in message <ill2kj$1bh$>...
> yes, "min" should do the trick. I was so into the "mod" thing that I totally missed it! Thank you. I'll have a look at clockmod as well.
- - - - - - - - -
  Using the 'min' function as opposed to a mod-like action depends very much on what you wish to happen with modb(Y,X) if Y>X.  You never did state your preference in this case.

Roger Stafford