delay and summing of signal

3 Ansichten (letzte 30 Tage)
Dhananjay Singh
Dhananjay Singh am 7 Mär. 2019
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:

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by