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$>
References: <i2i3qr$lb8$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1280087729 25220 (25 Jul 2010 19:55:29 GMT)
NNTP-Posting-Date: Sun, 25 Jul 2010 19:55:29 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:655993

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

Roger Stafford