Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Minimum Value
Date: Wed, 20 Aug 2008 04:08:01 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 10
Message-ID: <g8g5b1$1rd$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 1219205281 1901 172.30.248.37 (20 Aug 2008 04:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Aug 2008 04:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:486349



By, "All positive values" it seems you are including zero. 
So your array has values >0?  There are several ways to
tackle this, here's one that assumes you want to keep a intact:

a = [0 52 200 13 99 8 2 31 29 10 60 0]; % Data.

tmp = a;
tmp(tmp==0) = NaN; % Get rid of your zeros.
min(tmp) % The value you want.