フィルターのクリア

generation of sound wave

9 ビュー (過去 30 日間)
N/A
N/A 2019 年 2 月 12 日
コメント済み: Star Strider 2019 年 2 月 12 日
how can i generate a sound wave through matlab?
  1 件のコメント
N/A
N/A 2019 年 2 月 12 日

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

採用された回答

Star Strider
Star Strider 2019 年 2 月 12 日
Fs = 4.41E+4;
t = linspace(0, Fs*5, Fs*5);
f1 = 1E+3;
f2 = 1E+1;
s = sin(2*pi*f1*t/Fs) .* cos(2*pi*f2*t/(5*Fs));
sound(s, Fs)
Experiment to get the result you want.
  2 件のコメント
N/A
N/A 2019 年 2 月 12 日
actually i want a graph generated with many peaks and valleys
Star Strider
Star Strider 2019 年 2 月 12 日
Adding a plot call to my previous code (and changing the modulating signal a bit):
Fs = 4.41E+4;
t = linspace(0, Fs*5, Fs*5);
f1 = 1E+3;
f2 = 1E+1;
s = sin(2*pi*f1*t/Fs) .* cos(2*pi*f2*t/(10*Fs));
sound(s, Fs)
figure
plot(t, s)
grid
Experiment to get the result you want.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by