Unable to get how to solve for mutltivariable function while calculating DTFT
3 次查看（过去 30 天）
I have the frequency response of a system given as:
and i am struggling to get the response of the above system when the input is
.What i have tried and stucked at is how do i give the x(n) as a input to the function 'H' . . Can anybody help me out with this or other way ?
Harsh Kumar 2023-7-5
编辑：Harsh Kumar 2023-7-14
I understand that you are trying to find the response of a system for a given input whose frequency response has been given already.
To do this, since the input is sinusoidal, you can use one of its property that the output will be just an amplified and phase differentiated version of itself when passed through the system.
Refer to the below code snippet for better understanding.
n = -25:1:25;
%system response at w=pi/4
w = pi/4;
H = 1/(1-0.9*exp(-1i*w));
mag = abs(H);
ang = angle(H);
%ouput=mag*sin(wt+ang) for sinosuidal input
output = 1/2*mag*cos((n*pi/4)+ang).*(n>=0);
You may refer to these documentation links for better understanding:
William Rose 2023-6-28
编辑：William Rose 2023-6-28
[Are you sure that is exactly how the frequency repsonse and the input funtion are defined?]
The frequency response is a function of θ. Let's assume .
The input x is a function of n. Let's assume n=t, so we have . Then we can write x(t) as , where . Now we recall that .
If you continue the algebra and deal with the complex numbers, you should find that Y is real.