multiplying audio signal by using Matlab

6 Ansichten (letzte 30 Tage)
Gentle EE
Gentle EE am 24 Mär. 2020
Kommentiert: Star Strider am 25 Mär. 2020
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 ?

Akzeptierte Antwort

Star Strider
Star Strider am 24 Mär. 2020
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 Kommentare
Gentle EE
Gentle EE am 24 Mär. 2020
Thank you so much !
Star Strider
Star Strider am 25 Mär. 2020
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by