Path: news.mathworks.com!not-for-mail
From: "Ulrik Nash" <uwn@sam.sdu.dk>
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$1@newscl01ah.mathworks.com>
Reply-To: "Ulrik Nash" <uwn@sam.sdu.dk>
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 1360074189 14775 172.30.248.48 (5 Feb 2013 14:23:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 5 Feb 2013 14:23:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: news.mathworks.com 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.