Envelope calculation using Matlab...

If I have a digital sampled waveform (for example sampled at 10kHz) and a set of uneven envelope points (say 4 or 5) - how can I use Matlab to work out the following:
Assume the sampled waveform dips into the envelope on several occasions but the majority of the time it should be completely outside of the envelope. I want to calculate what percentage of the overall area of the defined envelope was covered by entries of the sampled waveform into it.
I'm a Matlab beginner so any sample code would be greatly appreciated.

답변 (1개)

Image Analyst
Image Analyst 2012년 9월 29일

0 개 추천

Not sure what this means. Do you have a diagram to illustrate what "encroaching" means to you? Do you mean something like
aboveUpperEnvelope = signal > upperEnvelope;
belowLowerEnvelope = signal < lowerEnvelope;
And then just say it's 100% if the signal is within the envelope and it's some fraction if the envelope is within the signal? And the percentage depends on where the zero line is. Is your upper envelope just the negative of your lower envelope, or are they both offset and raised above the x axis?

댓글 수: 4

Walter Roberson
Walter Roberson 2012년 9월 29일
And are the envelopes sloped or curved ?
Walter Roberson
Walter Roberson 2012년 9월 29일
Is the envelope defined by frequency or by intensity? Because if it is defined by frequency then you will need to convert the signal from intensity to frequency in order to do the matching.
Note: converting a frequency envelope to intensity and trying to match that is unlikely to work. Besides, that would be a back-of-the-envelope calculation.
S Dodd
S Dodd 2012년 9월 30일
The envelope points would be made up of a set of x-axis time points with corresponding y-axis power points.
S Dodd
S Dodd 2012년 10월 11일
The envelope is made up of a series of straight lines whereas the actual waveform is a much higher resolution set of data points that is smoothed.

댓글을 달려면 로그인하십시오.

질문:

2012년 9월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by