Detects DTMF tones in audio by Goertzel algorithm.
Code will break in the case that all detected digits are the same, or all the same followed by pause. To fix that, replace "ct = 1" and the following "for" loop with code such as
y = r;
for i = length(r) : -1 : 2
if y(i) == y(i-1); y(i) = ; end
if y(end) == '-'; y(end) = ; end
if y(1) == '-'; y(1) = ; end
This might not be the most efficient version but sometimes it is not worth writing and debugging for maximum efficiency when more clarity will do the job.
why this is not working in my matlab software
what do you mean by varargin
thanks i want make circuit about controler of herbalrum full control with dtmf detector
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.