资源简介
DTMF合成与识别MatlabGUI实例-DTMF.zip
本帖最后由 oieve 于 2015-7-30 17:03 编辑
利用GUI 图形用户界面设计工具制作电话拨号面板,把DTMF 信号和电话机的键盘矩阵对应起来。其中选用我们熟悉的 10个数字键 0 — 9 , 2 个功能键“ *”、“#”,另四个键省略。按照图 1 电话机键盘矩阵的排列方式制作四行三列的按键控件。每个按键可用( Push Button )添加。 为了更直观的反应对应的按键号码,可以设置一个编辑框,用于动态的显示拨号号码,模拟实际电话的拨号显示窗口。编辑框可用(Edit Text )添加。 为了图形电话拨号面板的简洁美观,可以添加空白区域作为背景,并用静态文本框制作文字信息。背景可用(Frame )添加,静态文本框可用(Static Text )添加。最终利用GUI 图形用户界面设计工具生成的图形电话拨号面板用于拨号音的合成产生部分。
本帖最后由 oieve 于 2015-7-30 17:03 编辑
利用GUI 图形用户界面设计工具制作电话拨号面板,把DTMF 信号和电话机的键盘矩阵对应起来。其中选用我们熟悉的 10个数字键 0 — 9 , 2 个功能键“ *”、“#”,另四个键省略。按照图 1 电话机键盘矩阵的排列方式制作四行三列的按键控件。每个按键可用( Push Button )添加。 为了更直观的反应对应的按键号码,可以设置一个编辑框,用于动态的显示拨号号码,模拟实际电话的拨号显示窗口。编辑框可用(Edit Text )添加。 为了图形电话拨号面板的简洁美观,可以添加空白区域作为背景,并用静态文本框制作文字信息。背景可用(Frame )添加,静态文本框可用(Static Text )添加。最终利用GUI 图形用户界面设计工具生成的图形电话拨号面板用于拨号音的合成产生部分。

代码片段和文件信息
%% GUI题头
function varargout = DTMF(varargin)
% DTMF MATLAB code for DTMF.fig
% DTMF by itself creates a new DTMF or raises the existing
% singleton*.
%
% H = DTMF returns the handle to a new DTMF or the handle to
% the existing singleton*.
%
% DTMF(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in DTMF.M with the given input arguments.
%
% DTMF(‘Property‘‘Value‘...) creates a new DTMF or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before DTMF_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to DTMF_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 DTMF
% Last Modified by GUIDE v2.5 12-May-2013 12:25:02
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @DTMF_OpeningFcn ...
‘gui_OutputFcn‘ @DTMF_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
%% 打开GUI
% --- Executes just before DTMF is made visible.
function DTMF_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 DTMF (see VARARGIN)
% Choose default command line output for DTMF
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% logo
% web http://www.ilovematlab.cn/forum.php?mod=viewthread&tid=21915
% 备选方案(即将被matlab删除)
%newIcon = javax.swing.ImageIcon(‘dllgp.jpg‘);
%figframe = get(handles.DTMF‘Javaframe‘); %取得Figure的Javaframe。
%figframe.setFigureIcon(newIcon); %修改图标
% web http://blog.sina.com.cn/s/blog_4bb051200100w7es.html
ChangeIcon(handles.DTMF‘dllgp.jpg‘)
% logo(show the image)
axes(handles.axes3);
logo2 = imread(‘dllgl.jpg‘);
imshow(logo2);
% 拨号绘图相关
global NUM
NUM = zeros(00);
NoCtrl=‘‘;
set(handles.ShowNum‘string‘NoCtrl);
%axes1绘图生成
cla(handles.axes1);
axes(handles.axes1);
axis([0200-2.22.2]);
grid on
set(gca‘XTick‘0:40:200)
set(gca‘XTickLabel‘{‘0‘‘40‘‘80‘‘120‘‘160‘‘200‘})
title(‘Wave Figure‘);
xlabel(‘n‘);
ylabel(‘y‘);
%axes2绘图生成
cla(handles.axes2);
axes(handles.axes2);
grid on
axis([0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 217 2013-05-15 19:17 DTMF.mat
文件 78769 2013-05-15 19:08 1.JPG
文件 81336 2013-05-15 19:09 2.JPG
文件 74246 2013-05-15 19:10 3.JPG
文件 162682 2013-05-12 11:47 dllgb.jpg
文件 7759 2013-05-12 12:13 dllgl.jpg
文件 240612 2013-05-12 11:47 dllgp.jpg
文件 14030 2013-05-12 12:25 DTMF.fig
文件 21204 2013-05-15 20:12 DTMF.m
相关资源
- 串行级联cpm系统MATLAB仿真
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
评论
共有 条评论