I should convolve my signal with which function to have the signal itself?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
2NOR_Kh
el 11 de Jul. de 2022
Respondida: Paul
el 11 de Jul. de 2022
I should convolve my signal with a function and have the signal itself. I read on the internet that dirac function will be the solution but I convolved it with my signal and all the points became NaN. I don't know what is the problem. I used the same time line as the time line of my signal.
2 comentarios
Benjamin Thompson
el 11 de Jul. de 2022
Yes, symbolically the dirac function is the identify operation for convolution.
But if you are doing this in MATLAB there are a lot of questions such as whether you are doing it symbolically or numerically. Please sumit some code as an example.
Respuesta aceptada
Más respuestas (1)
Paul
el 11 de Jul. de 2022
Hi Donya,
dirac is only defined in the Symbolic Math Toolbox and so should only be used for symbolic math, and only for continuous time analysis as well.
The SMT has another function kroneckerDelta that can be cast to a double and used for discrete-domain processing as with conv().
But you can easily write your own unit pulse function for integer-valued input
u = @(n) double(n==0);
This function will, of course, work for non-integer input if that's needed for some reason.
0 comentarios
Ver también
Categorías
Más información sobre Signal Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!