Hi. I'm having some issues with delta function. I need to use symbolic variables and functions which I need to differentiate. Since some heaviside functions are present in my main function, its differentiation brings me delta functions. I need them to give 1 if the delta argument is zero, but I obtain infinite. Is there a way to avoid this (maybe with a different differentation matlab function)? I use the diff() function to differentiate my sym function.