Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: how to find particular element in array
Date: Thu, 26 May 2011 17:52:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <irm404$i3o$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1306432324 18552 172.30.248.48 (26 May 2011 17:52:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 May 2011 17:52:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2891623
Xref: news.mathworks.com comp.soft-sys.matlab:728891

How do I find particular element in array and I also need the position of that element?

for eg.
Locate element 4 in A

A =

    [ 1     2     6     5
     2     3     7     6
     3     4     8     7
     5     6    10     9
     6     7    11    10]
     
output should be    A(3,2)