I have a wav signal I have imported into MATLAB, and I would like to find its envelope. I want to do this via the Hibert transform. But whenever I try to find the Hilbert transform of the signal I receive the following error message:
>Warning:HILBERT ignores imaginary part of input. >> In hilbert (line 38) Undefined function 'real' for input arguments of type 'matlab.graphics.chart.primitive.Line'. >>Error in hilbert (line 39) xr = real(xr);
Here are screenshots of the corresponding code:
I have found the function
real.mat and made sure it is in a filepath accessible to MATLAB using the
pathtool command. I still encounter this problem.
What should I do?