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