sound peak or gaussion or delta

6 ビュー (過去 30 日間)
Alex Dashevsky
Alex Dashevsky 2017 年 12 月 2 日
コメント済み: Image Analyst 2017 年 12 月 8 日
Hi, I want to generate short signal(not sinusoidal signal) like Gaussian or delta. I want sound and hear that signal
mu = 0;
sigma = 1;
x = -16*sigma:1e-3:16*sigma;
y1 = pdf('normal', x, mu, sigma);
plot(x, y1)
sound(y1,8000);
I don't hear sound

回答 (2 件)

Star Strider
Star Strider 2017 年 12 月 2 日
You do not hear it because as a single Gaussian pulse, it is far below the range of human hearing, and probably below the ability of soundcards to reproduce it. If you modulate it by a sound that you are able to hear, you can hear it, as the envelope of the sound.
Try this:
mu = 0;
sigma = 5;
x = -16*sigma:1e-3:16*sigma;
y1 = pdf('normal', x, mu, sigma);
y2 = sin(2*pi*x*100) .* y1 * 1E+6;
plot(x, y1)
soundsc(y2,8000);
Here, ‘y2’ creates the ‘carrier’ and modulates it by ‘y1’. You can hear the Gaussian pulse fade in and fade out if you increase ‘sigma’ to 5 or more, and use soundsc instead of sound.
  1 件のコメント
Alex Dashevsky
Alex Dashevsky 2017 年 12 月 8 日
I see sinus on oscilloscope. I can't succeed to measure delay between to signal. I need not sinusoidal signal

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


Image Analyst
Image Analyst 2017 年 12 月 2 日
See attached demo that creates a warbling sound. Adapt as needed.
  2 件のコメント
Alex Dashevsky
Alex Dashevsky 2017 年 12 月 8 日
I see sinus on oscilloscope. I can't succeed to measure delay between to signal. I need not sinusoidal signal
Image Analyst
Image Analyst 2017 年 12 月 8 日
Uh, OK.

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

カテゴリ

Help Center および File ExchangeAcoustics, Noise and Vibration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by