Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Minimum Value
Date: Wed, 20 Aug 2008 07:43:02 +0000 (UTC)
Organization: University of Memphis
Lines: 15
Message-ID: <g8ghu6$608$1@fred.mathworks.com>
References: <g8fiqh$1q0$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219218182 6152 172.30.248.37 (20 Aug 2008 07:43:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Aug 2008 07:43:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:486372



"Raju Gain" <supernova5271@yahoo.com> wrote in message
<g8fiqh$1q0$1@fred.mathworks.com>...
> Hi,
> 
> I have a variable which is an array of all positive 
> numbers. I am trying to find the minimum value in the 
> varibale other than zero. Can anyone suggest how I can do 
> this? I was using the min() function before.
> 
> Thanks for your time.
> 

if x is your array:

minvalue = min(x((x~=0)))