multiplying audio signal by using Matlab

8 ビュー (過去 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 Center および File ExchangeTime-Frequency Analysis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by