This tool finds the upper and lower envelopes of a signal. It selects the data points with the maximum possible area for the upper envelope and the minimum possible area of the lower envelope. Based on this method, it only works well with concave upper envelopes and convex lower envelopes. Example file is provided.
function [xe,ye]=Envelope(x,y,type,N)
input:
x: x vector of the signal
y: y vector of the signal
type: 'upper' for upper envelope and 'lower' for lower envelope
N: number of data points of the envelope
output:
xe: x vector of the envelope
ye: y vector of the envelope
Cite As
Ayad Al-Rumaithi (2023). Envelope of a Signal (https://www.mathworks.com/matlabcentral/fileexchange/118420-envelope-of-a-signal), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |