From: "Ulrik Nash" <>
Newsgroups: comp.soft-sys.matlab
Subject: Fining mean within specified intervals
Date: Tue, 5 Feb 2013 14:23:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <ker4kd$edn$>
Reply-To: "Ulrik Nash" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1360074189 14775 (5 Feb 2013 14:23:09 GMT)
NNTP-Posting-Date: Tue, 5 Feb 2013 14:23:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: comp.soft-sys.matlab:788267

Suppose I have a simple two column matrix A. Column 1 contains information about QUALITY and column 2 contains information about PRICE.

Suppose I wish to calculate for certain intervals of QUALITY, the mean PRICE, what is a nice approach for this. I was thinking that I need to define these quality intervals in a vector, and apply these intervals, but exactly how is the problem.