一、简介

肌电信号又称为EMG;EMG(electromyography)是一种生物电流信号,它产生于任意组织器官,一般是一种时间和一系列的振幅、频率和波形函数 。肌电信号是伴随肌肉收缩动作产生的一种生物电信号,采集皮肤表面的肌电信号称为表面肌电信号sEMG。
sEMG信号是人体表面肌肉通过收缩产生的生物电流。 神经系统控制肌肉的活动(收缩或者放松),在表面皮肤不同的肌肉纤维运动单元在同一时间产生相互不同的信号。

肌电信号的产生
表面肌电信号是由多个运动单元发放的动作电位序列,在皮肤表面呈现的时间和空间上综合叠加的结果;


肌电信号的特点
(1)sEMG是一维时间动作电位序列
(2)sEMG是交流信号,幅值一般和肌肉运 动力度成正比
(3)sEMG是一种非平稳的微电信号,其幅值在 0~1.5mv,有用信号频率位于 0~500HZ,主要能量集中在 20~150HZ
(4)SEMG一般比肢体运动超前 30~150ms产生,可以进行运动提前判断

二、源代码

function varargout = bishe1(varargin)
% BISHE1 MATLAB code for bishe1.fig
%      BISHE1, by itself, creates a new BISHE1 or raises the existing
%      singleton*.
%
%      H = BISHE1 returns the handle to a new BISHE1 or the handle to
%      the existing singleton*.
%
%      BISHE1('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in BISHE1.M with the given input arguments.
%
%      BISHE1('Property','Value',...) creates a new BISHE1 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before bishe1_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to bishe1_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help bishe1% Last Modified by GUIDE v2.5 25-May-2021 12:43:46% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...'gui_Singleton',  gui_Singleton, ...'gui_OpeningFcn', @bishe1_OpeningFcn, ...'gui_OutputFcn',  @bishe1_OutputFcn, ...'gui_LayoutFcn',  [] , ...'gui_Callback',   []);
if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});
endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
elsegui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT% --- Executes just before bishe1 is made visible.
function bishe1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to bishe1 (see VARARGIN)% Choose default command line output for bishe1
handles.output = hObject;% Update handles structure
guidata(hObject, handles);% UIWAIT makes bishe1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.
function varargout = bishe1_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structure
varargout{1} = handles.output;% --- Executes during object creation, after setting all properties.
function axes2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to axes2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: place code in OpeningFcn to populate axes2% --- Executes during object creation, after setting all properties.
function axes1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to axes1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: place code in OpeningFcn to populate axes1% --- Executes during object creation, after setting all properties.
function axes3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to axes3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: place code in OpeningFcn to populate axes3% --- Executes during object creation, after setting all properties.
function axes4_CreateFcn(hObject, eventdata, handles)
% hObject    handle to axes4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: place code in OpeningFcn to populate axes4% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton6 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
selection=questdlg(['是否关闭',get(gcf,'Name'),'这个面板?'], ... ['Close ',get(gcf,'Name'),'...'],'是','否','是');%当选择退出按钮时,得出一个问是否确定关闭的框
if strcmp(selection,'否')return;
elseclc;    %当选择关闭时,清空所有matla输入面上的所有错误信息,同时关闭图像窗口clear all;delete(gcf);end% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
A=load('1.txt');
global Q;
switch Qcase 1s=A(30001:35000,2);case 2s=A(35001:40000,2);case 3s=A(40001:45000,2);case 4s=A(45001:50000,2);case 5s=A(50001:55000,2);case 6s=A(55001:60000,2);
end
fs=1;                                                  %采样频率
N=5000;                                                %采样点数
n=0:N-1;
t=n/fs;                                                %时间
axes(handles.axes1);
plot(t,s);
title('输入信号');xlabel('t/s');ylabel('幅度');         %时域波形
grid on
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
A=load('1.txt');
global Q;
switch Qcase 1s=A(30001:35000,2);case 2s=A(35001:40000,2);case 3s=A(40001:45000,2);case 4s=A(45001:50000,2);case 5s=A(50001:55000,2);case 6s=A(55001:60000,2);
end
fs=1;                               %采样频率
N=5000;                             %采样点数
n=0:N-1;
t=n/fs;                             %时间
sfft=fft(s);                        %傅里叶变换
axes(handles.axes2);
plot((1:length(sfft)/2)*fs/length(sfft),2*abs(sfft(1:length(sfft)/2))/length(sfft));
title('信号频谱');xlabel('频率/Hz');ylabel('幅度');
grid on                             %未滤波时  频域波形
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
A=load('1.txt');
global Q;
switch Qcase 1s=A(30001:35000,2);case 2s=A(35001:40000,2);case 3s=A(40001:45000,2);case 4s=A(45001:50000,2);case 5s=A(50001:55000,2);case 6s=A(55001:60000,2);
end
fs=1;                               %采样频率
N=5000;                            %采样点数
n=0:N-1;
t=n/fs;                             %时间
axes(handles.axes3);
c = rceps(s);                       %做倒谱图
plot(t,c);
title('信号倒谱');xlabel('频率/Hz');ylabel('幅度');
grid on
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
A=load('1.txt');
global Q;
switch Qcase 1s=A(30001:35000,2);case 2s=A(35001:40000,2);case 3s=A(40001:45000,2);case 4s=A(45001:50000,2);case 5s=A(50001:55000,2);case 6s=A(55001:60000,2);
end
fs=1;                          %采样频率
N=5000;                            %采样点数
n=0:N-1;
t=n/fs;                           %时间
sfft=fft(s);  %傅里叶变换
sF=s;

三、运行结果

四、备注

版本:2014a

【肌电信号】基于matlab GUI肌电信号处理【含Matlab源码 966期】相关推荐

  1. 【Matlab肌电信号】肌电信号处理【含GUI源码 966期】

    一.代码运行视频(哔哩哔哩) [Matlab肌电信号]肌电信号处理[含GUI源码 966期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1] 包子阳,余继周,杨 ...

  2. 【信号处理】基于Matlab GUI数字均衡器设计,源码附上

    [信号处理]基于Matlab GUI数字均衡器设计,源码附上 数字均衡器是一种常用于音频信号处理的技术,可以有效地补偿声音中的频率失真,提高音质.在这篇文章中,我们将介绍如何使用Matlab GUI进 ...

  3. 【过程控制】基于matlab GUI串级控制【含Matlab源码 2385期】

    ⛄一.简介 1 交互系统整体外观展示 该系统基于 MATLAB GUI 与 Simulink 联合开发, 实现对串级控制系统特性的研究与分析.学生在学习串级控 制有关知识后可使用该应用进行知识回顾.界 ...

  4. matlab svm 语音识别,【情感识别】基于matlab支持向量机(SVM)的语音情感识别【含Matlab源码 543期】...

    一.简介 支持向量机(Support Vector Machine)是Cortes和Vapnik于1995年首先提出的,它在解决小样本.非线性及高维模式识别中表现出许多特有的优势,并能够推广应用到函数 ...

  5. 【Matlab语音分析】语音信号分析【含GUI源码 1718期】

    一.代码运行视频(哔哩哔哩) [Matlab语音分析]语音信号分析[含GUI源码 1718期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1]韩纪庆,张磊,郑铁 ...

  6. 【Matlab语音加密】语音信号加密解密(带面板)【含GUI源码 181期】

    一.代码运行视频(哔哩哔哩) [Matlab语音加密]语音信号加密解密(带面板)[含GUI源码 181期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1]韩纪庆 ...

  7. 【Matlab语音处理】声音信号频谱分析仪【含GUI源码 325期】

    一.代码运行视频(哔哩哔哩) [Matlab语音处理]声音信号频谱分析仪[含GUI源码 325期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1]韩纪庆,张磊, ...

  8. 【Matlab心音信号】EMD心音信号特征提取【含GUI源码 1735期】

    一.代码运行视频(哔哩哔哩) [Matlab心音信号]EMD心音信号特征提取[含GUI源码 1735期] 二.matlab版本及参考文献 1 matlab版本 2014a *2 参考文献 [1] 沈再 ...

  9. 【Matlab语音处理】汉宁窗FIR陷波滤波器语音信号加噪去噪【含GUI源码 1711期】

    一.代码运行视频(哔哩哔哩) [Matlab语音处理]汉宁窗FIR陷波滤波器语音信号加噪去噪[含GUI源码 1711期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 ...

  10. 【数字信号】基于matlab GUI多音双频(DTMF)拨号音频解码仿真系统【含Matlab源码 1084期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[数字信号]基于matlab GUI多音双频(DTMF)拨号音频解码仿真系统[含Matlab源码 1084期] 点击上面蓝色字体,直接付费 ...

最新文章

  1. c语言想调用函数怎么弄43,如果想要调用这个函数,还应该怎么写
  2. 部署exchange2010三合一:之七:安装证书服务器
  3. win10安装pytorch
  4. excel运行python_使用PyXLL在Excel中执行Python脚本
  5. vShield App设计指南[上]
  6. SVN+网站服务器同步更新
  7. Python+selenium搭建自动化框架
  8. MYSQL数据库优化的八种方式
  9. MapXtreme实用技巧
  10. 测试了几款mysql监控工具
  11. hadoop处理excel数据
  12. Java多线程系列--【JUC集合10】- ConcurrentLinkedQueue
  13. Arduino作为编程器读写BIOS、bootloader、uboot或者breed
  14. Planner – 项目管理软件 - 小众软件
  15. 攻防世界misc 如来十三掌
  16. 【测验6 编程题】: 组合数据类型 (第6周)
  17. Reading Comprehension必读paper汇总
  18. 如何使用vue开发公众号网页
  19. FastFCN: Rethinking Dilated Convolution in the Backbone for Semantic Segmentation
  20. 蜗牛一般的UAP开发(零)初识UAP

热门文章

  1. IMEI校验思路及代码
  2. 构建手机apk的过程
  3. jQuery源码06-jQuery = function(){};给JQ对象,添加一些方法和属性,extend : JQ的继承方法,jQuery.extend()...
  4. 不同浏览器对URL最大长度的限制(转)
  5. Linux的主动实行措施cron和crontab(1)
  6. 20191124每日一句
  7. 190413每日一句
  8. 10 Love Quotes Touch Your Soul at First Sight
  9. Atitit smp prj 项目简化方法总结 目录 第一章 俩大原则准则 1 第一节 极简主义原则 + 自由主义原则 1 第二章 简单化架构 1 第一节 简单语言php vs java 1 第二
  10. Atitit 长距离无线通信法 LoRa NB-IoT NB-CIoT LoRa是Semtech公司的创新发明,该技术向用户提供显著的长距离、低功耗、安全数据传输机制。使用LoRa技术构建的公用网