Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1305589984 11393 172.30.248.47 (16 May 2011 23:53:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 16 May 2011 23:53:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2876404
Xref: news.mathworks.com comp.soft-sys.matlab:727134

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

http://i.imgur.com/eZlED.png

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!