Can someone help me with enveloping the curve?
3 次查看(过去 30 天)
显示 更早的评论
I need to get the result as attached. I have included the data required to plot the curve.
0 个评论
采纳的回答
KSSV
2018-6-11
Have a look on envelope.
S = importdata('data.txt') ;
data = S.data ;
t = data(:,1) ; y = data(:,2) ;
plot(t,y) ;
hold on
[up,lo] = envelope(y);
plot(t,up,'r')
Your data is in text file data.txt
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!