Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Fining mean within specified intervals

Subject: Fining mean within specified intervals

From: Ulrik Nash

Date: 5 Feb, 2013 14:23:09

Message: 1 of 2

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.

Subject: Fining mean within specified intervals

From: dpb

Date: 5 Feb, 2013 14:41:04

Message: 2 of 2

On 2/5/2013 8:23 AM, Ulrik Nash wrote:
> 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.

What is the defining expression for an "interval"?

Look up "logical addressing" in doc's meanwhile may give some ideas...

--

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us