Path: news.mathworks.com!not-for-mail
From: "Ozge Taskan" <lordgy@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: finding the row number
Date: Fri, 11 Jun 2010 14:52:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <hutiil$klm$1@fred.mathworks.com>
Reply-To: "Ozge Taskan" <lordgy@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1276267925 21174 172.30.248.38 (11 Jun 2010 14:52:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 11 Jun 2010 14:52:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 571581
Xref: news.mathworks.com comp.soft-sys.matlab:644139

Hi,

I have a matrix (n,4) and some rows are all zero and I try to find in which row all numbers are zero like

[1 8 9 0; 0 0 0 0; 8 9 7 6; 7 0 8 0; 0 0 0 0 ]

I just want to get the answer as ans=[2 5]. I tried to use find function but it cannot give which row. Can it be possible?

Thank you very much in advance.

Ozge