From: aymanmmmm on
Hello,

Can anyone tell me why the results from the following two expressions are different?

///////////////////////////////////////////////////////////
clc
clear

syms x

>> int(dirac(x-1)*x,-inf,inf) + int(dirac(x-3)*x,-inf,inf)

ans =

4

>> int((dirac(x-1) + dirac(x-3))*x,-inf,inf)

ans =

0
///////////////////////////////////////////////////////////


Thanks
 | 
Pages: 1
Prev: Curve problem
Next: image segmentation