Path: news.mathworks.com!not-for-mail
From: "KH " <jambanova@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Differentiation of a dirac function
Date: Thu, 5 Aug 2010 15:12:04 +0000 (UTC)
Organization: Univ of Nottingham
Lines: 15
Message-ID: <i3ekc4$fe4$1@fred.mathworks.com>
Reply-To: "KH " <jambanova@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1281021124 15812 172.30.248.38 (5 Aug 2010 15:12:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Aug 2010 15:12:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1315828
Xref: news.mathworks.com comp.soft-sys.matlab:659415

I want to find out the first derivative of Dirac delta function. I got the answer from the symbolic toolbox and then converted it into a function handle.

syms x
a = matlabFunction(diff(dirac(x-10)));

Matlab returns
a = 
    @(x)dirac(x-10,1)

The answer is fine. Then, let's say if you evaluate a(10), the error says too many input arguments.
Error in ==> sym.matlabFunction>makeFhandle/@(x)dirac(x-10,1)

Can anyone tell me if it is an inherent error to evaluate the derivative of Dirac delta function in Matlab?

Thanks