Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: bogfrog <jmcgraw@rcn.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Minimum Value
Date: Tue, 19 Aug 2008 23:38:38 EDT
Organization: The Math Forum
Lines: 13
Message-ID: <10277492.1219203549093.JavaMail.jakarta@nitrogen.mathforum.org>
References: <g8fiqh$1q0$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1219203549 8646 144.118.30.135 (20 Aug 2008 03:39:09 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Wed, 20 Aug 2008 03:39:09 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:486347



> 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.
> 

min(my_array(find(my_array > 0)))