From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Find values in Matrix
Date: Mon, 23 Mar 2009 01:45:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gq6piv$fen$>
References: <gq6n61$di7$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1237772703 15831 (23 Mar 2009 01:45:03 GMT)
NNTP-Posting-Date: Mon, 23 Mar 2009 01:45:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1760883
Xref: comp.soft-sys.matlab:526813

"matthew mccarthy" <> wrote in message <gq6n61$di7$>...
> I am having trouble finding values in two matrices. I have two matrices that are both 215x215 and I need to find two values in one matrix that are also in the other. The problem I am having is I can only find one value. I am trying to use the [r,c]=find(m=v).
> Thanks for the help

Be sure that the values that you are trying to find are in the same row/column in each matrix.

Also, it may be a typo but:

[r,c] = find(m==v)