SOLUTION OF DIFFERENCE EQUATION WITHOUT INITIAL CONDITIONS
#1

Procedure:-
1. Rewrite the given difference equation to have only the output terms on the LHS and input terms to be on RHS
2. Create a Matrix of Y coefficients, a
3. Create a Matrix of X coefficients, b
4. Generate the input sequence x(n)
5. Find the output of the system for the input sequence x(n)
6. Plot the input and the output

MATLAB program for difference equation without initial condition
Code:
clear
close all
clc

% THE INPUT SEQUENCE IS X(N) = U(N)
% THE DIFFERENCE EQUATION IS Y(N) – 0.9Y(N-1)= X(N)
% NUMERATOR POLYNOMIAL IS 'A' AND DENOMINATOR POLYNOMIAL IS 'B'

b = [1];
a = [1 -0.9];
% N -TIME INDEX
n = [0:20];
% GENERATE THE INPUT SEQUENCE X(N)
x = [( n >= 0)];
% FIND THE OUTPUT OF THE SYSTEM FOR THE INPUT SEQUENCE X(N)
y = filter(b,a,x);
% PLOT THE INPUT AND THE OUTPUT
subplot(2,1,1);
stem(n,x);
xlabel('n --> ');
ylabel('x --> ');
title('Input sequence x(n)');
grid on;

subplot(2,1,2);
stem(n,y);
xlabel('n --> ');
ylabel('y --> ');
title('Output sequence y(n)');
grid on;

RESULT:- DIFFERENCE EQUATION WITHOUT INITIAL CONDITIONS
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: net difference, cold rolling equation, power required equation, to solve equation in 8085, nuclear fission equation, contract for difference, seminar on leniar equation in two variable,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  IDEAL POWER EQUATION smart paper boy 0 1,215 03-08-2011, 09:30 AM
Last Post: smart paper boy
  Study the manipulation of given equation into an equivalent logic circuit seminar class 0 2,509 13-05-2011, 04:07 PM
Last Post: seminar class
  SOLUTION OF DIFFERENCE EQUATION WITH INITIAL CONDITIONS seminar class 0 1,281 06-05-2011, 03:40 PM
Last Post: seminar class
  PROGRAM TO FIND ROOTS OF QUADRATIC EQUATION BY USING PACKAGES AND INTERFACE project topics 0 1,547 06-04-2011, 01:18 PM
Last Post: project topics

Forum Jump: