image thumbnail
from GUI for DTMF Generator-Decoder using Goertzel's Algorithm by Pranam Janney
GUI for DTMF generator-decoder using Goertzel's algorithm.

StringNum(InputArray,Num,i);
function [InputArray,i] = StringNum(InputArray,Num,i);
%
%
%        Function to store the numbers in a array upto a max of 8 numbers
%                 and return the array for display purposes
%
%  Author: Pranam Janney           Date: 15/05/04     Time: 17:50          
%  Email: pranamjanney@yahoo.com
%
%  Usage:
%          D = StringNum(Num);
% Inputs:
%         Num = number that should be stored
%           i = number of times this function has been called
%         InputArray = stored array of numbers
% Outputs:
%         D = array of 8 numbers
%         i = number of times this function has been called
%         InputArray = stored array of numbers
%
if ( i <= 8)       % By changing this number the dialled numbers could be increased
    InputArray(i) = Num;
else
    i = 1;
    InputArray = ' ';
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    

Contact us at files@mathworks.com