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
引用格式
Ayad Al-Rumaithi (2024). Envelope of a Signal (https://www.mathworks.com/matlabcentral/fileexchange/118420-envelope-of-a-signal), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2022b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!