資源簡介
基于小波變換的包絡分析用于軸承故障診斷的源代碼
代碼片段和文件信息
clc;
clear;
close?all;
fs=?10000;%采樣頻率
N=?1024;%采樣點數
load?bear.mat;%故障
Data=X105_BA_time(1:N);
xData=(Data-mean(Data))/std(Data1);
%時域波形
figure(1);
plot(1:NxData);
xlabel(‘樣本序號‘);
ylabel(‘電壓‘);
%db10小波進行4層分解
%一維小波分解
[cl]=wavedec(xData4‘db10‘);
%重構第1-4層小波系數
d4=wrcoef(‘d‘cl‘db10‘4);
d3=wrcoef(‘d‘cl‘db10‘3);
d2=wrcoef(‘d‘cl‘db10‘2);
d1=wrcoef(‘d‘cl‘db10‘1);
%顯示細節信號
figure(2);
subplot(411);
plot(d4‘LineWidth‘2);
ylabel(‘d4‘);
subplot(412);
plot(d3‘LineWidth‘2);
ylabel(‘d3‘);
subplot(413);
plot(d2‘LineWidth‘2);
ylabel(‘d2‘);
subplot(414);
plot(d1‘LineWidth‘2);
ylabel(‘d1‘);
xlab
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1383??2012-07-04?16:41??zcxb.m
-----------?---------??----------?-----??----
?????????????????1383????????????????????1
評論
共有 條評論