Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Show the Matlab code for the following problem (4) Consider the system described

ID: 3598233 • Letter: S

Question

Show the Matlab code for the following problem

(4) Consider the system described by the following difference equation:
y(n) = 1.77y(n 1) 0.81y(n 2) + x(n) 0.5x(n 1).
(a) Assuming a unit-step input, and using a long enough section of the input so that a
constant output y(n) is observed for large n, hence plot the output and determine
the value of this constant called Go.
Note: Go = y(n) for n .
(b) Determine and plot the transient response given by:
yt(n) = y(n) Go.
(c) Find the energy of the transient response signal.
(d) After how many samples does the output reach steady-state? Write a Matlab pro-
gram to determine the beginning of the steady-state (end of the transient) period

Explanation / Answer

package com;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.Random;

import javax.swing.JPanel;

public class Graph extends JPanel {
public Graph() {
setSize(500, 500);
}

@Override
public void paintComponent(Graphics g) {
Graphics2D gr = (Graphics2D) g; // This is if you want to use Graphics2D
// Now do the drawing here
ArrayList<Integer> scores = new ArrayList<Integer>(10);

Random r = new Random();

for (int i : scores) {
i = r.nextInt(20);
System.out.println(r);
}

int y1;
int y2;

for (int i = 0; i < scores.size() - 1; i++) {
y1 = (scores.get(i)) * 10;
y2 = (scores.get(i + 1)) * 10;
gr.drawLine(i * 10, y1, (i + 1) * 10, y2);
}
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote