Article View: aus.stats.s
Article #232Counting number of zeros in an array
From: Nishant
Date: Thu, 18 May 2006 16:09
Date: Thu, 18 May 2006 16:09
23 lines
1414 bytes
1414 bytes
Hi all,
i want to find a mat lab algorithm in order to count number of
zeros in any given matrix
for eg
Given Matrix A:
1 0 1 1
0 0 1 1
2 2 3 3
2 2 4 0
the required matlab code should give me the no of zeros as 4
Please post your views on the topic.
thanks
Nishant
nishantxl@rediffmail.com
Technical Details
Message-ID:
<1147968588.364113.220530@i39g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i39g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fa931,8cd52487542d3c17,start X-Google-Attributes: gidfa931,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i39g2000cwa.googlegroups.com!not-for-mail From: "Nishant" <nishantxl@rediffmail.com> Newsgroups: aus.stats.s Subject: Counting number of zeros in an array Date: 18 May 2006 09:09:48 -0700 Organization: http://groups.google.com Lines: 24 Message-ID: <1147968588.364113.220530@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: 131.151.33.99 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1147968597 31967 127.0.0.1 (18 May 2006 16:09:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 May 2006 16:09:57 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i39g2000cwa.googlegroups.com; posting-host=131.151.33.99; posting-account=DeVkcw0AAABSEsR0OarWexhV0GMah4PW