【信号处理】使用Matlab进行信号成帧(分割)(Matlab代码实现)

  💥💥💞💞欢迎来到本博客❤️❤️💥💥

🏆博主优势:🌞🌞🌞博客内容尽量做到思维缜密,逻辑清晰,为了方便读者。

⛳️座右铭:行百里者,半于九十。

📋📋📋本文目录如下:🎁🎁🎁

目录

💥1 概述

📚2 运行结果

🎉3 参考文献

🌈4 Matlab代码实现


💥1 概述

使用 MATLAB 进行信号成帧(分割)是一种常见的信号处理技术,特别适用于音频信号处理和数字通信系统中的数据处理。信号成帧是将长时间的连续信号分割成短时间内的小段,每一段称为一帧。这有助于对信号进行分析、处理和特征提取,以便于后续的处理和分析。MATLAB 提供了丰富的工具和函数,可以方便地实现信号成帧的过程。通过使用 MATLAB 的信号处理工具箱中的函数,如 函数用于分割信号, 函数用于生成窗函数等,可以轻松地进行信号成帧处理。这种技术在语音处理、音频处理、语音识别和通信系统中得到广泛应用。

📚2 运行结果

主函数部分代码:

clear, clc, close all

%% get a section of the sound file
[x, fs] = audioread('DR2_MJAR0_SI2247.wav');    % load an audio file
x = x(:, 1);                                    % get the first channel
x = x/max(abs(x));                              % normalize the signal
N = length(x);                                  % signal length
t = (0:N-1)/fs;                                 % time vector

%% signal framing
frlen = round(20e-3*fs);                        % frame length
hop = round(frlen/2);                           % hop size
[FRM, tfrm] = framing(x, frlen, hop, fs);       % signal framing

%% determine the Short-time energy
STE = sum(FRM.^2);

%% determine the Short-time zero-crossing rate
STZCR = sum(abs(diff(FRM > 0)))/size(FRM, 1);

%% plot the results
% plot the signal waveform
figure(1)
subplot(3, 1, 1)
plot(t, x)
grid on
xlim([0 max(t)])
ylim([-1.1*max(abs(x)) 1.1*max(abs(x))])
set(gca, 'FontName', 'Times New Roman', 'FontSize', 14)
xlabel('Time, s')
ylabel('Amplitude')
title('The signal in the time domain')

% plot the STE
subplot(3, 1, 2)
plot(tfrm, STE)
grid on
xlim([0 max(tfrm)])
ylim([0 1.1*max(STE)])
set(gca, 'FontName', 'Times New Roman', 'FontSize', 14)
xlabel('Time, s')
ylabel('Energy')
title('Short-time Energy')

🎉3 参考文献

文章中一些内容引自网络,会注明出处或引用为参考文献,难免有未尽之处,如有不妥,请随时联系删除。

[1]Omotezako T ,Neo E ,Zhu H , et al. Disordered spatial pattern of redness signal on facial skin and visual perception of health, stress, and hidden aging.[J]. Skin research and technology : official journal of International Society for Bioengineering and the Skin (ISBS) [and] International Society for Digital Imaging of Skin (ISDIS) [and] International Society for Skin Imaging (ISSI),2024,30(3).

[2]Ndhlovu A ,Adams B J ,Heyden D V S . Large-scale environmental signals in seagrass blue carbon stocks are hidden by high variability at local scales.[J]. The Science of the total environment,2024,921.

🌈4 Matlab代码实现

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值