multiplying audio signal by using Matlab

조회 수: 15 (최근 30일)
Gentle EE
Gentle EE 2020년 3월 24일
댓글: Star Strider 2020년 3월 25일
I have an audio signal ( of my voice ) .However,I want to multiply it by cosine function.
t=[1:1000];
n=cos(2*pi*fc*t);
[y fs]=audioread('message.wav');
How can I do that ?

채택된 답변

Star Strider
Star Strider 2020년 3월 24일
The cosine signal must be the same size as ‘y’.
One way to define it as such:
t = linspace(0, 1, fs);
Then create the cosine funciton to be what you want.
Try this:
t = linspace(0, 1, fs);
fc = 440;
n=cos(2*pi*fc*t).';
y_new = y .* n;
sound(y_new,Fs)
  댓글 수: 6
Gentle EE
Gentle EE 2020년 3월 24일
Thank you so much !
Star Strider
Star Strider 2020년 3월 25일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by