Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectorizing Assignment to array of structures?
Date: Sun, 9 Sep 2007 22:03:44 +0000 (UTC)
Organization: Boston University
Lines: 15
Message-ID: <fc1qk0$ebn$1@fred.mathworks.com>
References: <fc1m8v$b6r$1@fred.mathworks.com> <qGZEi.15770$B25.7823@news01.roc.ny>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1189375424 14711 172.30.248.37 (9 Sep 2007 22:03:44 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 9 Sep 2007 22:03:44 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 844160
Xref: news.mathworks.com comp.soft-sys.matlab:427581



Doug Schwarz <see@sig.for.address.edu> wrote in message <

> 
> If data already exists and is the right size then use
> 
>    c = num2cell([5 7]);
>    [data.mean] = c{:};
> 
> or if you are using a version of MATLAB before 7:
> 
>    c = num2cell([5 7]);
>    [data.mean] = deal(c{:});
> 

Ah, thanks Doug (and ez). That did it.