Jan 13, 2006 #1 O 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!
matlab envelope I have some discreet data but is there any function to find the envelope of the data in matlab? thx!
Jan 13, 2006 #2 J jacobus Newbie level 5 Joined Jan 11, 2006 Messages 9 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Activity points 1,376 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')
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')