Envelope of a vibration signal
2 views (last 30 days)
Show older comments
Hello everyone,
I am trying to find the envelope of vibration signal and am using similar code to the one in this link but am getting totally different graphs. Ive attached the graphs which I got.
Thanks,,
This is the link: https://www.mathworks.com/help/signal/ug/envelope-extraction-using-the-analytic-signal.html
And this is the code am using:
clc
close all
clear all
t = 0:1e-4:1;
x = [1+cos(2*pi*50*t)].*cos(2*pi*1000*t);
y = hilbert(x);
env = abs(y);
figure(1)
plot(t,x)
hold on
plot(t,[-1;1]*env,'r','LineWidth',2)
xlim([0 0.1])
xlabel('Seconds')
%%====================================================================== %%
% Load Healthy Bearing
load('*************************.mat')
vib = vibG ;
h = hilbert(vib);
henv = abs(h)';
figure(2)
plot(tt,vib,'b')
hold on
plot(tt,[-1;1]*henv,'r','LineWidth',2)
xlim([0 0.1])
xlabel('Seconds')
0 Comments
Answers (0)
See Also
Categories
Find more on Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!