Path: news.mathworks.com!not-for-mail
From: "Lee Newman" <newman.lee.nospam@comcast.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectorizing Assignment to array of structures?
Date: Fri, 9 Nov 2007 20:06:21 +0000 (UTC)
Organization: University of Michigan
Lines: 13
Message-ID: <fh2ejt$nsv$1@fred.mathworks.com>
References: <fc1m8v$b6r$1@fred.mathworks.com> <qGZEi.15770$B25.7823@news01.roc.ny>
Reply-To: "Lee Newman" <newman.lee.nospam@comcast.net>
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 1194638781 24479 172.30.248.38 (9 Nov 2007 20:06:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 9 Nov 2007 20:06:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 25887
Xref: news.mathworks.com comp.soft-sys.matlab:436830



> If data already exists and is the right size then use
> 
>    c = num2cell([5 7]);
>    [data.mean] = c{:};

> Doug Schwarz
> dmschwarz&ieee,org
> Make obvious changes to get real email address.


Is there a way to do this without the intermediate
assignment to c? [data.mean]= (num2cell(stuff)){:}  would be
great, but Matlab doesn't allow this...