数字信号处理课程设计.(4)

2018-12-17 10:51

Signal = PressKeyDown(handles,'2'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'2'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key3.

function Key3_Callback(hObject, eventdata, handles) % hObject handle to Key3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'3'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'3'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key4.

function Key4_Callback(hObject, eventdata, handles) % hObject handle to Key4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

16

set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'4'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'4'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key5.

function Key5_Callback(hObject, eventdata, handles) % hObject handle to Key5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'5'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'5'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key6.

function Key6_Callback(hObject, eventdata, handles) % hObject handle to Key6 (see GCBO)

17

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'6'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'6'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key7.

function Key7_Callback(hObject, eventdata, handles) % hObject handle to Key7 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'7'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'7'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber); % --- Executes on button press in Key8.

function Key8_Callback(hObject, eventdata, handles) % hObject handle to Key8 (see GCBO)

18

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'8'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'8'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key9.

function Key9_Callback(hObject, eventdata, handles) % hObject handle to Key9 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'9'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'9'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in KeyStar.

function KeyStar_Callback(hObject, eventdata, handles) % hObject handle to KeyStar (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

19

% handles structure with handles and user data (see GUIDATA) % --- Executes on button press in Key2.

set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'*'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'*'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber);

% --- Executes on button press in Key0.

function Key0_Callback(hObject, eventdata, handles) % hObject handle to Key0 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.DecodeText,'string',''); %清空解码显示文本框

Signal = PressKeyDown(handles,'0'); handles.DTMFSignal = Signal;

handles.TelNumber=strcat(handles.TelNumber,'0'); % Update handles structure guidata(hObject, handles);

set(handles.CodeText,'string',handles.TelNumber); % --- Executes on button press in KeySharp.

function KeySharp_Callback(hObject, eventdata, handles) % hObject handle to KeySharp (see GCBO)

20


数字信号处理课程设计.(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:盐津县永丰矿业有限公司永丰煤矿整合技改施工组织设计

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: