testing test
Member level 3
Hi,
I have a cosine input and I want it to multiply with a filter which changes the cosine to sine. The following code just plots a cosine signal. I want to multiple x with impulse response of a filter such that the output is a sine signal. Please help me design any such filter via coding.
Thank you!
I have a cosine input and I want it to multiply with a filter which changes the cosine to sine. The following code just plots a cosine signal. I want to multiple x with impulse response of a filter such that the output is a sine signal. Please help me design any such filter via coding.
Code:
N=100;
t=0:N;
f1=20;
fs=300;
x=cos(2*pi*f1/fs*t);
plot(t,x);
Thank you!