From: "KH " <>
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$>
Reply-To: "KH " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1281021124 15812 (5 Aug 2010 15:12:04 GMT)
NNTP-Posting-Date: Thu, 5 Aug 2010 15:12:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1315828
Xref: 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 = 

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?