SOLUTION OF DIFFERENCE EQUATION WITH INITIAL CONDITIONS
#1

Code:
clear
close all
clc
% SOLVE THE GIVEN DIFFERENCE EQUATION Y(N) - 1.5Y(N-1) + 0.5Y(N-2) = X(N), N >= 0
% X(N) = (1/4)^n * U(N) SUBJECT TO Y(-1) = 4 AND Y(-2) = 10
% CALCULATE AND PLOT THE OUTPUT OF THE SYSTEM
% FIND THE TRANSFER FUNCTION OF THE GIVEN DIFFERENCE EQUATION H(Z) = Y(Z)/X(Z)
% NUMERATOR POLYNOMIAL IS a AND DENOMINATOR POLYNOMIAL IS b
% FOR THE ABOVE EXAMPLE b = [1] AND a = [1 -1.5 0.5]

b = [1];
a = [1 -1.5 0.5];
% FIND THE INITIAL CONDITIONS FOR THE INPUT X SUCH THAT THE GIVEN INITIAL CONDITIONS
% FOR Y ARE OBTAINED
yic = [4 10];
xic = filtic(b,a,yic);
xic
% GENERATE THE DISCRETE TIME INDEX
n = [0:7];
% GENERATE THE GIVEN INPUT X
x = (1/4).^n;
% FIND THE OUTPUT OF THE SYSTEM FOR THE INPUT SEQUENCE X
y = filter(b,a,x,xic);

% PLOT THE INPUT AND THE OUTPUT
figure(1)
subplot(2,1,1);
stem(n,x);
grid on;
xlabel('n --> ');
ylabel('x --> ');
title ('Input Sequence');
subplot(2,1,2);
stem(n,y);
xlabel('n --> ');
ylabel('y --> ');
title ('Output Sequence');
grid on;

RESULT:- DIFF EQN WITH INITIAL COND
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: qudtratic equation microprocessor programming, emf equation of dc generator ppt, distinguish between initial investigation and feasibility study, showig the neural network equation, boids equation, general link design equation of satellite, surname and initial,

[-]
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,216 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 WITHOUT INITIAL CONDITIONS seminar class 0 1,393 06-05-2011, 03:35 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: