ImageVerifierCode 换一换
格式:DOCX , 页数:23 ,大小:17.20KB ,
资源ID:2526608      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-2526608.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(基于matlab的肌电信号处理程序.docx)为本站会员(b****1)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

基于matlab的肌电信号处理程序.docx

1、基于matlab的肌电信号处理程序基于matlab的肌电信号处理程序:function varargout = untitled(varargin)% UNTITLED M-file for untitled.fig% UNTITLED, by itself, creates a new UNTITLED or raises the existing% singleton*.% H = UNTITLED returns the handle to a new UNTITLED or the handle to% the existing singleton*.% UNTITLED(CALLBA

2、CK,hObject,eventData,handles,.) calls the local% function named CALLBACK in UNTITLED.M with the given input arguments.% UNTITLED(Property,Value,.) creates a new UNTITLED or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before untitled_OpeningFc

3、n gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to untitled_OpeningFcn via varargin.% *See GUI Options on GUIDEs Tools menu. Choose GUI allows only one% instance to run (singleton).% See also: GUIDE, GUIDATA, GUIHANDLES % Edit th

4、e above text to modify the response to help untitled % Last Modified by GUIDE v2.5 08-Nov-2014 12:45:18 % Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct(gui_Name, mfilename, . gui_Singleton, gui_Singleton, . gui_OpeningFcn, untitled_OpeningFcn, . gui_OutputFcn, untitled_

5、OutputFcn, . gui_LayoutFcn, , . gui_Callback, );if nargin & ischar(varargin1) gui_State.gui_Callback = str2func(varargin1);end if nargout varargout1:nargout = gui_mainfcn(gui_State, varargin:);else gui_mainfcn(gui_State, varargin:);end% End initialization code - DO NOT EDIT % - Executes just before

6、untitled is made visible.function untitled_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)% vara

7、rgin command line arguments to untitled (see VARARGIN) % Choose default command line output for untitledhandles.output = hObject; % Update handles structureguidata(hObject, handles); % UIWAIT makes untitled wait for user response (see UIRESUME)% uiwait(handles.figure1); % - Outputs from this functio

8、n are returned to the command line.function varargout = untitled_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 us

9、er data (see GUIDATA) % Get default command line output from handles structurevarargout1 = handles.output; % - Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future

10、version of MATLAB% handles structure with handles and user data (see GUIDATA)global s;global a;global t;global count;% count=1;filename,filepath=uigetfile(*.txt,);% str=filepath filename; s=load(str); a=s(:,7); t=s(:,1); axes(handles.axes1);plot(t,a);xlabel();ylabel();title(); if count=2 global s2;g

11、lobal a2;global t2; filename,filepath=uigetfile(*.txt,); str=filepath filename; s2=load(str); a2=s2(:,7); t2=s2(:,1); plot(handles.axes2,t2,a2); end count=1; % - Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCB

12、O)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global a;global t;global s;global y; % global IR;% global SORH;y=fft(a,20000);M =length (a) ;N=length(y);p=size(a);% s1=a(1:20000);C L=wavedec(a,3,db5);cA3=appcoef(C,L,db5,

13、3);cD1=detcoef(C,L,1);cD2=detcoef(C,L,2);cD3=detcoef(C,L,3);thr1=thselect(cD1,rigrsure);thr2=thselect(cD2,rigrsure);thr3=thselect(cD3,rigrsure);TR=thr1,thr2,thr3;SORH=s;XC,CXC,LXC,PERFO,PERF2=wdencmp(lvd,a,. db5,3,TR,SORH);L=p(2);x=a;h=XC;F=0;M=0;for ii=1:L m(ii)=(x(ii)-y(ii)2; t(ii)=y(ii)2; f(ii)=t

14、(ii)/m(ii); F=F+f(ii); M=M+m(ii);end;SNR=10*log10(F);MSE=M/N;SM=SNR/MSE;axes(handles.axes2);plot(XC(1:10000);xlabel();ylabel();title();% plot(handles.axes2,XC(1:20000); % - Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutto

15、n3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global a;global t;global y;global count;%a=EMG3(1:points,2);y=fft(a,20000); %Fourierfs=2000;N=length(y);mag=abs(y);%Fourierf=(0:N-1)/N*fs; %axes(handles.axes1);p

16、lot(f,mag);% plot(handles.axes1,f,mag);% xlabel();ylabel();title(N=20000);if count=2global a2;global t2;global y2; %a=EMG3(1:points,2);y2=fft(a2,20000); %Fourierfs=2000;N=length(y2);mag=abs(y2);%Fourierf=(0:N-1)/N*fs; %axes(handles.axes2);plot(f,mag); endcount=1; % - Executes on button press in push

17、button4.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)global a;global t;% global IR;% global SORH;C L=wavedec(a,3,db5);c

18、A3=appcoef(C,L,db5,3);cD1=detcoef(C,L,1);cD2=detcoef(C,L,2);cD3=detcoef(C,L,3);thr1=thselect(cD1,rigrsure);thr2=thselect(cD2,rigrsure);thr3=thselect(cD3,rigrsure);TR=thr1,thr2,thr3;SORH=s;XC,CXC,LXC,PERFO,PERF2=wdencmp(lvd,a,. db5,3,TR,SORH);y1=fft(XC,20000);fs=2000;N=length(y1);mag1=abs(y1);f=(0:N-

19、1)/N*fs;axes(handles.axes2);plot(f,mag1);xlabel();ylabel();title(N=20000); % - 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 struc

20、ture with handles and user data (see GUIDATA)global a;global t;global y;global count;fs=2000;N=length(y);f=(0:N-1)/N*fs;%axes(handles.axes1);plot(f,angle(y);xlabel();ylabel();title();% plot(handles.axes1,f,angle(y);%if count=2global a2;global t2;global y2;fs=2000;N=length(y2);f=(0:N-1)/N*fs;%axes(ha

21、ndles.axes2);plot(f,angle(y2);xlabel();ylabel();title();endcount=1;% plot(handles.axes1,f,angle(y);% % - 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 versio

22、n of MATLAB% handles structure with handles and user data (see GUIDATA)global a;global t;C L=wavedec(a,3,db5);cA3=appcoef(C,L,db5,3);cD1=detcoef(C,L,1);cD2=detcoef(C,L,2);cD3=detcoef(C,L,3);thr1=thselect(cD1,rigrsure);thr2=thselect(cD2,rigrsure);thr3=thselect(cD3,rigrsure);TR=thr1,thr2,thr3;SORH=s;X

23、C,CXC,LXC,PERFO,PERF2=wdencmp(lvd,a,. db5,3,TR,SORH);y1=fft(XC,20000);fs=2000;N=length(y1);f=(0:N-1)/N*fs;axes(handles.axes2);plot(f,angle(y1);xlabel();ylabel();title(); % - Executes on button press in pushbutton7.function pushbutton7_Callback(hObject, eventdata, handles)% hObject handle to pushbutt

24、on7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)try delete(allchild(handles.axes1); delete(allchild(handles.axes2); set(handles.edit1,string,); set(handles.edit1,string,); set(handles.edit3,string,); set(hand

25、les.edit4,string,); set(handles.edit5,string,); set(handles.edit6,string,); end % - Executes on button press in pushbutton8.function pushbutton8_Callback(hObject, eventdata, handles)% hObject handle to pushbutton8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles

26、structure with handles and user data (see GUIDATA)global a;global t;global s;y=fft(a,20000);fs=2000;N=length(y);mag=abs(y);f=(0:N-1)/N*fs;power1=(mag.2)/20000;axes(handles.axes1);plot(f,power1);xlabel();ylabel();title();global count;global a2;global t2;global s2;if count=2y2=fft(a2,20000);fs=2000;N=

27、length(y2);mag=abs(y2);f=(0:N-1)/N*fs;power1=(mag.2)/20000;axes(handles.axes2);plot(f,power1);xlabel();ylabel();title();endcount=1; % - Executes on button press in pushbutton9.function pushbutton9_Callback(hObject, eventdata, handles)% hObject handle to pushbutton9 (see GCBO)% eventdata reserved - t

28、o be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global a;global t;global s;s=fft(a,2000);C L=wavedec(a,3,db5);cA3=appcoef(C,L,db5,3);cD1=detcoef(C,L,1);cD2=detcoef(C,L,2);cD3=detcoef(C,L,3);thr1=thselect(cD1,rigrsure);thr2=thselect(cD2,rigrsure);thr3=thselect(cD3,rigrsure);TR=thr1,thr2,thr3;SORH=s;XC,CXC,LXC,PERFO,PERF2=wdencmp(lvd,a,. db5,3,TR,SORH);y1=fft(XC,20000);fs=2000;N=length(y1);mag=abs(y1);f=(0:N-1)/N*fs;power1=(mag.2)/20

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2