필터 지우기
필터 지우기

Playing 2 sounds simultaneously

조회 수: 5 (최근 30일)
Cyrus
Cyrus 2013년 4월 18일
I am trying to play 2 waveforms simultaneously and was wondering if anybody can help me with this. The current script I have is:
x = [0:.1:1000*pi];
x_trans = transpose(x);
y = sin(x_trans);
y2 = cos(x_trans);
comp = [y, y2];
soundsc(comp);
If the is a better way to do this I am open to ideas

답변 (1개)

Walter Roberson
Walter Roberson 2013년 4월 18일
That looks appropriate. You can write it more compactly but internally it would come out as the same thing:
x = [0:.1:1000*pi];
soundsc( [sin(x(:)), cos(x(:))] );

카테고리

Help CenterFile 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!

Translated by