Path: news.mathworks.com!not-for-mail
From: Loren Shure <loren.shure@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How can I use plus operator on dataset element?
Date: Mon, 9 Nov 2009 15:45:56 -0500
Organization: The MathWorks
Lines: 18
Message-ID: <MPG.2562498ea2930dc7989a65@news.mathworks.com>
References: <hd8rt9$9r6$1@fred.mathworks.com> <hd98j6$8n4$1@fred.mathworks.com> <hd9a16$aqi$1@fred.mathworks.com>
NNTP-Posting-Host: shurel.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1257799556 15449 172.31.57.214 (9 Nov 2009 20:45:56 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 20:45:56 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:583642


In article <hd9a16$aqi$1@fred.mathworks.com>, Richard.Johnson@fsa.gov.uk 
says...
> Dear Steve Lord,
> 
> thanks for your reply.  Sorry, but I don't see how to use the datasetfun function.  What am I supposed to substitute for 'fun' in this case? 'Plus' doesn't seem to work.
> 
> Maybe it would be easier not to use datasets.  I don't think they existed when I first learned MATLB.  Can I transform a dataset object A into a matrix B such that MATLAB will not complain about references to B(i,j)?
> 
> Many thanks,
> 
> Richard.

You need to supply a function handle (according to the help) so that 
would be @plus, not 'plus'

-- 
Loren
http://blogs.mathworks.com/loren