to find the envelope of some data in Matlab

Status
Not open for further replies.

orcad

Newbie level 1
Joined
Jan 13, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
matlab envelope

I have some discreet data
but is there any function to find the envelope of the data in matlab?
thx!
 

envelope matlab

you may do it like the following:

plot(t,y)
hold on
ind=find(diff(sign(diff))==+2)+1;
val=interp1(t(ind),y(ind),t,'linear');
plot(t,val,'r')
 

    orcad

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…