May 22, 2010 This GUI does the Image Encryption of any RGB, Gray image of different formats. The code also generates the Key.
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to share a project named as DTMF Decoder using MATLAB.
In this project, I have designed a keypad in MATLAB using the GUI functionality of MATLAB. After designing the keypad, I have assigned a tune to each of these buttons. Obviously the tune attached to each button is different and when we press any of these buttons, then the MATLAB recognizes the respective button. This project is designed in and I have tested it on MATLAB 2009 and MATLAB 2014 and it works fine on both of them.
Code is given below in this tutorial for download. F you got problem in it then ask in comments and I will try to resolve them. So, let’s get started with DTMF decoder in MATLAB. DTMF Decoder using MATLAB. You can download the complete code by clicking the below button.
Y = y1 + y2; sound ( y, fs ). So, you can see in the above code that I have generated a sine wave and then created a sound using that sine wave. So, we have such sounds assigned to each of these buttons.
Now once button is pressed, the respective sound will be activated and rite after that sound, I have added a subroutine for decoding that sound. This subroutine is placed in a separate file named as subdecode.m.
This subdecode.m is responsible for DTMF decoding and its code is as follows. Axes(handles.fig1); plot(t,y); set(handles.fig1,'XMinorTick','on'); title('DTMF Input');xlabel('Time'); ylabel('Amplitude');grid; rmain=2048.2;rmag=1024.2; cn=9;cr=0.5; cl=.25;ch=.28; b,a=cheby1(cn,cr,cl); yfilt1=filter(b,a,y); h2=fft(yfilt1,rmain); hmag2=abs(h2(1:rmag)); b1,a1=cheby1(cn,cr,ch,'high'); yfilt2=filter(b1,a1,y); h3=fft(yfilt2,rmain); hmag3=abs(h3(1:rmag)); axes(handles.fig2); plot(yfilt1);grid; title('Filtered Low Freq. Signal'); xlabel('Time');ylabel('Amplitude'); axes(handles.fig3); plot(yfilt2);grid; title('Filtered High Freq.
You can see in the above figure that first graph is showing the DTMF input, which is actual signal which I have converted to sound on button press. The second graph is showing the Filtered Low Frequency Signal while the third one is showing the Filtered High Frequency Signal. The two graphs on the right side are showing the Amplitude of FFT Low Pass and FFT High Pass.
Now if you have a look at the Command window of then it will give you the button pressed as shown in below figure:. These are the buttons which I have pressed while testing it and it has given me each time which button is pressed. Here’s the video which will give you better idea of How this DTMF decoder using MATLAB is working. That’s all about DTMF Decoder using MATLAB. If you have any questions, then ask in comments and I will try my best to resolve them.
Till next tutorial take care and have fun!!!
A simple disp('Hello World') gave me this: 7630 312e 3030 7630 302e 3030 0007 301c d3e7 7fb1 0000 0004 0000 002a 0000 0035 4c97 ee76 779b d4b9 3948 d7ea 798c 05ba c67a 2a56 c4de d7f9 7446 1d59 0472 b700 cfc0 84f6 6c3d a042 08a7 pcode Create content-obscured, executable files (pcoded files). Makes content-obscured versions of F1, F2. The arguments F1, F2. Must describe MATLAB functions or files containing MATLAB code.
If the flag -INPLACE is used, the result is placed in the same directory in which the corresponding file was found. Otherwise, the result is placed in the current directory. Any existing results will be overwritten.
Needed private and class directories will be created in the current directory if they do not already exist.