Thread Subject: functions corresponding to this database SQL

Subject: functions corresponding to this database SQL

From: hailiang shen

Date: 7 Sep, 2009 22:06:01

Message: 1 of 2

I am manipulating a matrix, with database SQL, it is written as:
select column1, column2, min(column3) from matrix group by column1, column2.

Is there any function in Matlab can finish this job?

Thanks for any input

Subject: functions corresponding to this database SQL

From: Aldon Hynes

Date: 12 Sep, 2009 00:34:03

Message: 2 of 2

I'm not sure if this is what you are looking for, but I had to write something fairly similar to a Group By function for Matlab recently.

You can read about it at
Performing an SQL Style “Group By” in Matlab
http://www.toomre.com/node/801

Aldon

"hailiang shen" <hlshen2005@gmail.com> wrote in message
<h84049$3e8$1@fred.mathworks.com>...
> I am manipulating a matrix, with database SQL, it is written as:
> select column1, column2, min(column3) from matrix group by column1, column2.
>
> Is there any function in Matlab can finish this job?
>
> Thanks for any input

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
sql Sprinceana 8 Sep, 2009 04:44:24
matlab sql func... Sprinceana 8 Sep, 2009 04:44:24
rssFeed for this Thread

Contact us at files@mathworks.com