Issue with Matlab audio
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi;
I am sending a tone to only one side of the headphones I am using the following code for it:
t= 0:1/16000:5;
chan1 = cos(2*pi*500*t)'; %500 Hz tone
chan2 = zeros(size(chan1)); % silence
x = [chan1 chan2]; % stereo signal
sound(x, 16000)
However, I am still getting a tone from both sides of the ear plug. Why is that?
Is it my sound card that cannot do it? I do not understand.
Thanks for helping.
댓글 수: 0
채택된 답변
Jan
2013년 8월 2일
Either the sound card drivers are set to mono-output, or the connector of your earplugs do not fit exactly such that both channel have contact. I do not know any mono sound cards, such that I'd exclude this as a problem.
Therefore I'd start with using other speakers and check the sound setup in your operating system. But I'm convinced that this problem is not related to Matlab.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!