Path: news.mathworks.com!not-for-mail
From: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: multithreading
Date: Fri, 9 May 2008 14:13:05 +0000 (UTC)
Organization: Ricardo UK Ltd
Lines: 36
Message-ID: <g01m5h$k8h$1@fred.mathworks.com>
References: <ec0cbb1d-abce-49e7-a13e-523dd7fad1a8@k13g2000hse.googlegroups.com>
Reply-To: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210342385 20753 172.30.248.35 (9 May 2008 14:13:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 9 May 2008 14:13:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 43398
Xref: news.mathworks.com comp.soft-sys.matlab:467599


wapo <apostolos.georgakis@gmail.com> wrote in message 
<ec0cbb1d-abce-49e7-a13e-
523dd7fad1a8@k13g2000hse.googlegroups.com>...
> 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.

http://www.mathworks.com

Type multithreaded into the search box.  This is the first 
hit:


http://www.mathworks.com/products/matlab/demos.html?
file=/products/demos/shipping/matlab/multithreadedcomputatio
ns.html