Plotting more than one DTMF frequencies on a graph
Mostrar comentarios más antiguos
Hello,
I can plot single dtmf frequency. I would like to plot more than one frequency on a single graph. How do I do it?
Exampl below:
t = 0:1/32798:0.25-1/32798; x = sin(2*pi*xxx*t) + sin(2*pi*yyy*t);
x2 = sin(2*pi*aaa*t2) + sin(2*pi*bbb*t2);
if I do
plot(t, x); title('DTMF Signal for t = 0.25s'); xlabel('time (s)'); ylabel('Amplitude');
it will plot x for me.
Now I would like to plot x and x2 on the same graph. I am aware of putting frequency of zero in between.
Thank you.
2 comentarios
Jonathan Epperl
el 25 de Nov. de 2012
It's not clear to me, what exactly you are asking. Are you asking how to put more than one line in a plot? If so, either
plot(t,x,'b',t2,x2,'k');
or
plot(t,x);
hold on
plot(t2,x2);
hold off
but please read the documentation
doc plot
kyin gab
el 25 de Nov. de 2012
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre DTMF en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!