Plotting more than one DTMF frequencies on a graph
古いコメントを表示
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 件のコメント
Jonathan Epperl
2012 年 11 月 25 日
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
2012 年 11 月 25 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で DTMF についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!