New answers tagged

1

Your code does what you ask it do and the result look fine to me. It would be helpful to state why you think this is wrong and what you did expect instead. Envelope detection using Hilbert Transform works well for narrow band signals, (Amplitude modulation for example), but it typically does not do well for broad band signals as you do have here. You ...


3

Hm well, technically it is some kind of envelope: it oscillates between hilbert(x) and -hilbert(x). Your examples (dashed lines are $\pm$hilbert(x)): I'm assuming you're looking for something smoother. Matlab has a function called envelope where you have various ways of controlling how the envelope is extracted. Not sure if there is a Python equivalent. ...


Top 50 recent answers are included