How extracted envelop signal in matlab 2013
4 views (last 30 days)
Show older comments
Esraa abd Altoni
on 12 Sep 2020
Answered: Star Strider
on 12 Sep 2020
[y,fs]=wavread(‘fil.wav’) Db=mag2db(y) How find envelop of db??!!
0 Comments
Accepted Answer
Star Strider
on 12 Sep 2020
DbEnv = abs(hilbert(Db));
Example —
t = 0:0.01:5; % Create Data
s = sin(2*pi*t) .* cos(2*pi*10*t); % Create Data
psenv = abs(hilbert(s)); % Upper Envelope
nsenv = abs(hilbert(-s)); % Lower Envelope
figure
plot(t, s, 'LineWidth',1.5)
hold on
plot(t, psenv, '-r', 'LineWidth',2)
plot(t, -nsenv, '-g', 'LineWidth',2)
hold off
grid
legend('Signal','Upper Envelope','Lower Envelope', 'Location','N')
.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!