Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!k13g2000hse.googlegroups.com!not-for-mail
From: wapo <apostolos.georgakis@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: multithreading
Date: Fri, 9 May 2008 06:53:33 -0700 (PDT)
Organization: http://groups.google.com
Lines: 20
Message-ID: <ec0cbb1d-abce-49e7-a13e-523dd7fad1a8@k13g2000hse.googlegroups.com>
NNTP-Posting-Host: 194.237.142.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1210341214 11648 127.0.0.1 (9 May 2008 13:53:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 9 May 2008 13:53:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k13g2000hse.googlegroups.com; posting-host=194.237.142.10; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) 
Xref: news.mathworks.com comp.soft-sys.matlab:467597



Hi all,

Lets assume that I have a matrix like:

mtrx=rand(2,100);

If I have a system with multiple processors and I have the
multithreading option on how do I perform a row-wise operation on the
matrix but I specifically assign each thread to take care of one row.
For example I want to find the sum for each row, so:

Thread 1: sum(mtrx(1,:))
Thread 1: sum(mtrx(2,:))

Thanks in advance

Apo

Ps. I used sum as an example. I am interested in more complicated
operations.