Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: matrix manipulation-maximum value
Date: Sun, 24 Apr 2011 17:55:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 2
Message-ID: <ip1o5p$28p$1@fred.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: fred.mathworks.com 1303667705 2329 172.30.248.48 (24 Apr 2011 17:55:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 24 Apr 2011 17:55:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2209644
Xref: news.mathworks.com comp.soft-sys.matlab:723576

Hi all. I have a very simple matrix A=[0 0.5;1 3;2 4;3 1; 4 0.5;5 7;6 8;7 9;8 10;9 3;10 13].
As you can see the first column values are always growing. My objective is to compute the maximum value in the second column that corresponds to the range 3.5 to 7.2 in the first column. In this case matlab should only consider the sub matrix [4 0.5;5 7;6 8;7 9] and the final result should be 9. Is this possible to do in matlab?Many thanks.