Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
References: <ilj59c$src$1@fred.mathworks.com> <iljfa1$7ci$1@fred.mathworks.com> <ill2kj$1bh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1300127224 21757 172.30.248.47 (14 Mar 2011 18:27:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 14 Mar 2011 18:27:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:715782

"pluton schmidt" wrote in message <ill2kj$1bh$1@fred.mathworks.com>...
> 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