Path: news.mathworks.com!not-for-mail
From: "Ulrik Nash" <uwn@sam.sdu.dk>
Newsgroups: comp.soft-sys.matlab
Subject: Finding variance of vector, discounting zeros.
Date: Fri, 16 Sep 2011 15:23:29 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <j4vplh$8rc$1@newscl01ah.mathworks.com>
Reply-To: "Ulrik Nash" <uwn@sam.sdu.dk>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1316186609 9068 172.30.248.37 (16 Sep 2011 15:23:29 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 Sep 2011 15:23:29 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: news.mathworks.com comp.soft-sys.matlab:743340

Suppose I have a column vector, which includes zeros. How do I find the variance of all the numbers, discounting the zeros?

Regards,

Ulrik.