function varargout = Mainddl(varargin)
% MAINDDL MATLAB code for Mainddl.fig
% MAINDDL, by itself, creates a new MAINDDL or raises the existing
% singleton*.
%
% H = MAINDDL returns the handle to a new MAINDDL or the handle to
% the existing singleton*.
%
% MAINDDL('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in MAINDDL.M with the given input arguments.
%
% MAINDDL('Property','Value',...) creates a new MAINDDL or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before Mainddl_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to Mainddl_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 Mainddl
% Last Modified by GUIDE v2.5 15-Feb-2023 00:06:34
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Mainddl_OpeningFcn, ...
'gui_OutputFcn', @Mainddl_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before Mainddl is made visible.
function Mainddl_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 Mainddl (see VARARGIN)
% Choose default command line output for Mainddl
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes Mainddl wait for user response (see UIRESUME)
% uiwait(handles.figure1);
global fc1 fc2 fc3 fc4 fr1 fr2 fr3;
fc1=697;
fc2=770;
fc3=852;
fc4=941;
fr1=1209;
fr2=1336;
fr3=1477;
%设置背景
ha=axes('units','normalized','pos',[0 0 1 1]);
uistack(ha,'bottom'); %置于底部用buttom
ii=imread('4.jpeg'); %在当前文件夹下的图片名称
image(ii);
colormap gray
set(ha,'handlevisibility','off','visible','off');
% --- Outputs from this function are returned to the command line.
function varargout = Mainddl_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 on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc1*2*pi*t)+sin(fr1*2*pi*t);
sound(num1);
set(handles.edit2,'String',1);
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- 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)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num2=sin(fc1*2*pi*t)+sin(fr2*2*pi*t);
sound(num2);
set(handles.edit2,'String',2);
% --- Executes on button press in pushbutton3.
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)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc1*2*pi*t)+sin(fr3*2*pi*t);
sound(num1);
set(handles.edit2,'String',3);
% --- 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)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc2*2*pi*t)+sin(fr1*2*pi*t);
sound(num1);
set(handles.edit2,'String',4);
% --- 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)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc2*2*pi*t)+sin(fr2*2*pi*t);
sound(num1);
set(handles.edit2,'String',5);
% --- 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)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc2*2*pi*t)+sin(fr3*2*pi*t);
sound(num1);
set(handles.edit2,'String',6);
% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc3*2*pi*t)+sin(fr1*2*pi*t);
sound(num1);
set(handles.edit2,'String',7);
% --- 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 structure with handles and user data (see GUIDATA)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc3*2*pi*t)+sin(fr2*2*pi*t);
sound(num1);
set(handles.edit2,'String',8);
% --- Executes on button press in pushbutton9.
function pushbutton9_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc3*2*pi*t)+sin(fr3*2*pi*t);
sound(num1);
set(handles.edit2,'String',9);
% --- Executes on button press in pushbutton10.
function pushbutton10_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=1477;
num1=sin(fc4*2*pi*t)+sin(fr1*2*pi*t);
sound(num1);
set(handles.edit2,'String','#');
% --- Executes on button press in pushbutton11.
function pushbutton11_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
fs=8000;
t=(0:2000)/fs;
fc1=697;fc2=770;fc3=852;fc4=941;
fr1=1209;fr2=1336;fr3=
没有合适的资源?快使用搜索试试~ 我知道了~
数字信号基于matlab GUI电话按键识别【含Matlab源码 2382期】.zip
共6个文件
m:3个
jpg:2个
fig:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 116 浏览量
2023-10-30
19:17:21
上传
评论 2
收藏 270KB ZIP 举报
温馨提示
CSDN海神之光上传的代码均可运行,亲测可用,直接替换数据即可,适合小白; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主或扫描博客文章底部QQ名片; 4.1 博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作 功率谱估计: 故障诊断分析: 雷达通信:雷达LFM、MIMO、成像、定位、干扰、检测、信号分析、脉冲压缩 滤波估计:SOC估计 目标定位:WSN定位、滤波跟踪、目标定位 生物电信号:肌电信号EMG、脑电信号EEG、心电信号ECG 通信系统:DOA估计、编码译码、变分模态分解、管道泄漏、滤波器、数字信号处理+传输+分析+去噪、数字信号调制、误码率、信号估计、DTMF、信号检测识别融合、LEACH协议
资源推荐
资源详情
资源评论
收起资源包目录
【数字信号】基于matlab GUI电话按键识别【含Matlab源码 2382期】.zip (6个子文件)
【数字信号】基于matlab GUI电话按键识别【含Matlab源码 2382期】
运行结果1.jpg 132KB
Mainddl.m 23KB
dianhua.m 2KB
Mainddl.fig 61KB
运行结果2.jpg 130KB
telephone.m 9KB
共 6 条
- 1
资源评论
- weixin_530185002024-05-05感谢资源主分享的资源解决了我当下的问题,非常有用的资源。
- 2301_815655502023-12-28这个资源对我启发很大,受益匪浅,学到了很多,谢谢分享~
海神之光
- 粉丝: 3w+
- 资源: 2094
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现训练RBF网络的,但用的算法是梯度下降法,算法仍然是自己写的.rar
- 基于matlab实现小波分析改造后,可以分析脑电数据的程序,出现32个导联每个通道的功率谱.rar
- 基于matlab实现物体的应力和应变DIC-通过识别一系列图像的变形得到物体的应力和应变
- 基于matlab实现文档+程序NSGA-II多目标优化的matlab代码.rar
- 基于matlab实现文档+程序 多目标优化,NSGA2算法实现.rar
- 4_4、异步操作.vep
- matlab经典算法示例.zip
- 欧美风高端 PPT 推荐模板
- 卖景点卖门票的系统功能
- 基于matlab实现温度数据的小波功率谱分析.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功