Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Mean of nonzero elements in a 2D Array w/o a loop?
Date: Sun, 25 Jul 2010 19:55:29 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <i2i4rh$ok4$1@fred.mathworks.com>
References: <i2i3qr$lb8$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1280087729 25220 172.30.248.35 (25 Jul 2010 19:55:29 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 25 Jul 2010 19:55:29 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:655993

  What I meant to say was convert the zeros to NaNs and then use nanmean.

Roger Stafford