From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Combining elements in rows into single numbers and finding corresponding elements
Date: Mon, 16 May 2011 23:53:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <iqsdcv$b41$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1305589984 11393 (16 May 2011 23:53:04 GMT)
NNTP-Posting-Date: Mon, 16 May 2011 23:53:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2876404
Xref: comp.soft-sys.matlab:727134

This is a picture of a simple example of what I want to do.

Where Y, F, and W are matrices. 

My initial idea is to combine all the elements in each row of F into a single number. I have looked at concatenating but it doesn't seem to do what I want.

So that would give me, 
e = [111; 111; 222; 222] 

and then I need to find the corresponding values of Y and W that fall within the group 111 to do the operation. 

I'm heading in the right direction?  any hints would be greatly appreciated. Thanks for looking!