Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
References: <gq6n61$di7$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1237772703 15831 172.30.248.38 (23 Mar 2009 01:45:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 23 Mar 2009 01:45:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1760883
Xref: news.mathworks.com comp.soft-sys.matlab:526813

"matthew mccarthy" <batter8@aol.com> wrote in message <gq6n61$di7$1@fred.mathworks.com>...
> 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)

-Jonathan