%% %calculates the energy operator of a signal
%1. Raw signal (Vector)
%2. gr (Plot or not plot)
%Energy operator signal (ey)
%Teager operator (ex)
%The Teager Energy Operator is determined as
%(x(t)) = (dx/dt)^2+ x(t)(d^2x/dt^2) (1.1)
%in the continuous case (where x_ means the rst derivative of x, and x¨ means the second
%derivative), and as
%[x[n]] = x^2[n] + x[n - 1]x[n + 1] (1.2)
%in the discrete case.
%Note that the function is vectorized for optimum processing speed(Keep calm and vectorize)
%Author : Hooman Sedghamiz
Hooman Sedghamiz (2020). Teager Keiser Energy Operator Vectorized (https://www.mathworks.com/matlabcentral/fileexchange/45406-teager-keiser-energy-operator-vectorized), MATLAB Central File Exchange. Retrieved .
Excellent work. I have used this code in a GUI based toolbox for surface electromyography (sEMG) onset/offset detection. Available here: https://github.com/GallVp/emgGO
Really nice, thank you very much, easy to add to existing code.