基于短时傅里叶变换的变转速滚动轴承故障特征提取方法研究,这是个什么程序呀

该程序采用短时傅里叶变换(STFT)对变转速滚动轴承的故障特征进行提取。首先加载音频文件,然后定义分析参数如窗口长度、跳移大小和FFT点数。接着应用Blackman窗进行STFT计算,并对幅度谱进行归一化和校正。最后将幅度谱转换为dB并绘制色谱图,展示信号的幅度谱。
摘要由CSDN通过智能技术生成

clear, clc, close all

% load an audio file

[x, fs] = audioread('track.wav'); % load an audio file

x = x(:, 1); % get the first channel

% define analysis parameters

% wlen = 1024; % window length (recomended to be power of 2)

hop = wlen/4; % hop size (recomended to be power of 2)

nfft = 4096; % number of fft points (recomended to be power of 2)

% perform STFT

win = blackman(wlen, 'periodic');

[S, f, t] = stft(x, win, hop, nfft, fs);

% calculate the coherent amplification of the window

C = sum(win)/wlen;

% take the amplitude of fft(x) and scale it, so not to be a

% function of the length of the window and its coherent amplification

S

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值