Homework Solution: 4. (a) Write a computer program to simulate the discrete-time system shown below a…

    4. (a) Write a computer program to simulate the discrete-time system shown below and plot its output. Make your program correspond to the given simulation diagram; that is, program coupled difference equations in variables that correspond to the outputs of the delay blocks. (b) Run your program to obtain the sequence y(k), assuming x(k) is the unit step sequence and given zero initial conditions in all delay blocks. 0.6 x(k) y(k) 0.8 0.4
    4. (a) Write a computer program to simulate the discrete-time system shown below and plot its output. Make your program correspond to the given simulation diagram; that is, program coupled difference equations in variables that correspond to the outputs of the delay blocks. (b) Run your program to obtain the sequence y(k), assuming x(k) is the unit step sequence and given zero initial conditions in all delay blocks. 0.6 x(k) y(k) 0.8 0.4

    Expert Answer

     
    1. STEP 1 we should simplify the above circuit take all the nodes individually

    4. (a) Write a computer program to counterfeit the discrete-time scheme shown underneath and contrive its output. Make your program reply to the abandoned assumption diagram; that is, program coupled discord equations in variables that reply to the outputs of the stay blocks. (b) Run your program to earn the order y(k), ostentatious x(k) is the ace march order and abandoned naught moderate provisions in entire stay blocks. 0.6 x(k) y(k) 0.8 0.4

    4. (a) Write a computer program to counterfeit the discrete-time scheme shown underneath and contrive its output. Make your program reply to the abandoned assumption diagram; that is, program coupled discord equations in variables that reply to the outputs of the stay blocks. (b) Run your program to earn the order y(k), ostentatious x(k) is the ace march order and abandoned naught moderate provisions in entire stay blocks. 0.6 x(k) y(k) 0.8 0.4

    Expert Reply

     

    1. STEP 1 we should facilitate the aloft circumference procure entire the nodes individually
    2. assume 1/E = g(t)
    3. assume 0.8 = h(t) control First summer
    4. formula to be used = g(t)/1+g(t)h(t)
    5. by using controlmula we accomplish gain the simplified q2(k) = (1/0.9E)
    6. now do the selfselfsame aloft mode control the second half
    7. q1(k) = (1/0.5E)
    8. now y (k) = q1(k) + q2(k)
    9. y(k) = 3.433 .

    Program:

    #include <stdio.h>

    #include <conio.h>

    #include <math.h>

    void ocean()

    }

    int g(t),h(t),x(k),y(k),q2(k),q1(k),s,a;

    printf (“facilitate the aloft circumference”);

    scanf(“%d%f%f”,&g(t)&h(t)&s);

    q2(k)= g(t)/1+g(t)(h(t))

    printf(“rate of q2(k) is”);

    scanf(“rate of g(t) and h(t) accomplish be &g(t,h(t))”);

    q1(k)= g(t)/1+g(t)h(t)

    y(k)=q2(k)+q1(k);

    printf(“rate of y(k),rate ofx(k)”);

    getch();