フィルターのクリア

Plotting the tone frequencies

2 ビュー (過去 30 日間)
Anonym
Anonym 2020 年 10 月 4 日
コメント済み: Star Strider 2020 年 12 月 7 日
I am in the process of creating sound. I've created the tone frequencies, but I'll need to show it on a diagram (ex. plot), but it keep giving me error, when using the:
plot(s1+s2);
What am I doing wrong?
The two first plots doesn't give any results, it's just blue.
figure
subplot(3,1,1);
plot(t, s1);
xlim([0 1E+3]);
grid
subplot(3,1,2);
plot(t, s2);
xlim([0 1E+3]);
grid
subplot(3,1,3);
plot(t, s1 + s2);
xlim([0 1E+3]);
grid
  2 件のコメント
Cris LaPierre
Cris LaPierre 2020 年 10 月 4 日
It's always helpful to share the full error message as well.
When I run the code you shared with the plot command at the end, it generates a warning, but the plot appears. Is that what you see?
Anonym
Anonym 2020 年 10 月 4 日
編集済み: Anonym 2020 年 10 月 4 日
Updated the thread.
Yes sorry, I meant there wasn't something inside the plot, when the window pop-up. It was only blue inside.

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2020 年 10 月 4 日
Note that ‘t’ seems to be missing.
Substituting for it and changing the xlim parameters:
t = values;
figure
subplot(3,1,1);
plot(t, s1);
xlim([0 1E-1]);
grid
subplot(3,1,2);
plot(t, s2);
xlim([0 1E-1]);
grid
subplot(3,1,3);
plot(t, s1 + s2);
xlim([0 1E-1]);
grid
appears to create two separate tones and a modulated summation.
It is necessary to ‘zoom’ the plots this way in order to see the details.
  13 件のコメント
Anonym
Anonym 2020 年 12 月 7 日
Hello, sorry for always disturbing you. Do not know who else I could ask. There is just one thing I am curious about regarding this; is that how can I analyze a graph a two-tone frequencies that are combined in a graph? By your help and using your assistance, I have created two pairs of two frequencies with a close frequency and one with two frequencies that are far apart from each other. There is a clear difference, but how can we analyze it directly from the graph?
Appreciating your help.
Star Strider
Star Strider 2020 年 12 月 7 日
No worries.
I posted a sort-of Answer to it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by