フィルターのクリア

delay and summing of signal

2 ビュー (過去 30 日間)
Dhananjay Singh
Dhananjay Singh 2019 年 3 月 7 日
I am new to signal processing and matlab. what i want to implement is delay and summing of a signal. Sending a sgnal from one source, receive it on two different microphones. The received signal would be different in the case that one would have a delay of some value. These signals are then multiplied by two constnat(weights) and then summed together to get a final output.
In my code below I have sent a chirp signal. Y is the signal received at receiver 1 with no delay. Y1 is the received signal on other receiver, with delay of 10ms.
Now, i have to multiply these signals with some weight and sum them both to get the final output.
Can someone please verify whether my code till now is correct and how can i proceed further.
Code:
Fs=100e3;
tf=100e-3;
1/Fs:tf-1/Fs;
f1=100;
f2=1000;
SLOPE=(f2-f1)/tf;
F=f1+SLOPE*t;
y=1*sin(2*pi*F.*t);
subplot(2,1,1);
plot(t,y)
st=1/Fs;
delay=1000*st;
y1=1*sin(2*pi*F.*(t-delay));
subplot(2,1,2);
plot(t,y1);t=0:

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by