Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Cell Arrays with StarP?
Date: Thu, 29 May 2008 00:42:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <g1ku4q$emf$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1212021722 15055 172.30.248.38 (29 May 2008 00:42:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 May 2008 00:42:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:471049



I am looking to utilize the "parallel for" idea with starP.
An example I got from the website is as follows:

%serial version
a=rand(100,100,500);
tic; for i = 1:500
	b(:,:,i) = inv(a(:,:,i));
end; toc

%parallel version:
a=rand(100,100,500*p);
tic; b=ppeval('inv',a); toc

However, I would like to put each element of a cell array
though a parallel for loop:

A{1} = some matrix
A{2} = another matrix
... etc
A{n} = last matrix

Parallel For i = 1:n
  do something to A{n}
end

Is this possible? 

Thanks,

Dave