Subject: Re: Minimum Value
From: bogfrog <jmcgraw@rcn.com>
Date: Wed, 20 Aug 2008 04:05:09 EDT
Message-ID: <15362310.1219219539684.JavaMail.jakarta@nitrogen.mathforum.org>
References: <FgPqk.199122$gc5.21094@pd7urf2no>
Bytes: 929
Lines: 6
NNTP-Posting-Host: nitrogen.mathforum.org
Organization: The Math Forum
Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!nx02.iad01.newshosting.com!newshosting.com!38.119.85.86.MISMATCH!out.nntp.be!prop.superfeed.net!news-in.newsfeeds.com!support1.mathforum.org!not-for-mail
Newsgroups: comp.soft-sys.matlab
X-Trace: support1.mathforum.org 1219219539 21849 144.118.30.135 (20 Aug 2008 08:05:39 GMT)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Wed, 20 Aug 2008 08:05:39 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:486377



> The find() step is unnecessary
> 
> min(my_array(my_array > 0))


Thanks for that.  I thought the 0's in the output of a logical expression would cause an index error.  But obviously not!