Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mod function
Date: Sun, 13 Mar 2011 19:45:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <ilj6s0$9l6$1@fred.mathworks.com>
References: <ilj59c$src$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
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 1300045504 9894 172.30.248.47 (13 Mar 2011 19:45:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 13 Mar 2011 19:45:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:715561

Hi Pluton,

How about min?

min([X,Y])
min([X,X])

work just as you wanted, right?