Can someone help me with enveloping the curve?

5 Ansichten (letzte 30 Tage)
Neha Sinha
Neha Sinha am 11 Jun. 2018
Kommentiert: Neha Sinha am 11 Jun. 2018
I need to get the result as attached. I have included the data required to plot the curve.

Akzeptierte Antwort

KSSV
KSSV am 11 Jun. 2018
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
  3 Kommentare
KSSV
KSSV am 11 Jun. 2018
Have a look on findpeaks
Neha Sinha
Neha Sinha am 11 Jun. 2018
Okay Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by