Discrete-time signals and systems

Assignment Help Other Engineering
Reference no: EM131071469

ET382 Signals and Sys Theory and Lab(For Jack.Jones)

Week 6 Lab - Discrete-Time Signals and Systems

    • Watch video entitled "Module 6 -  Discrete-Time Signals in MATLAB"
    • Work the lab activity below using MATLAB.
    • Include answers for Problems and include MATLAB coding along with any output plots that support solutions into a Word document entitled "Lab6_StudentID".  Where your student id is substituted in the file name.
    • Upload file "Lab6_StudentID".

Activity 1:

A discrete-time system can be described in one of two ways.  One is by the unit-pulse response of the system, and the other is by the difference equation.  In the first case, if we are given an input and want to find the output, we have to convolve the system response with the input signal.  In the second case, we have to solve the difference equation for the output when the input signal is substituted into the difference equation.  The result should be the same no matter what approach is used. 

A discrete-time system has the following unit-pulse response:

              for

Correspondingly, the following difference equation describes the behavior of the system:

    Use the Matlab command conv to calculate the response of the system to a unit step input, x[n]=u[n].  Consider .  Show what you type into the Matlab command window.  Also, submit a plot of the output.  Be sure to label your axes. 

Matlab Tip:  Remember that you can easily get help on a command in Matlab by typing help with the command at the prompt:

EDU>>help conv

Matlab Tip:  Also, don't forget that in Matlab when you do certain operations on an array element-by-element, you must precede the operator with a period.  For instance, in Matlab, if you define an array n as follows:

EDU>>n=[0:20];

then the first term of the unit-pulse response is written as 0.5.^n  

Matlab Tip:  Sometimes it is useful to know the size of arrays you have created.  This can be done in several ways.  For example, you can use the command size:

EDU>> size(n)

ans =1    21

The size of the array is returned.  In this case, the array n has a size of 1 row by 21 columns.

Alternatively, you can switch the display from the Current Directory to the Workspace.  Then all current variables and arrays and their sizes are displayed.  Just click on Workspace in the upper left corner as indicated below.

    Use the Matlab function recur to calculate the response of the system to a unit step input, x[n]=u[n].  Again consider.  Show all that you type into the Matlab command window.  Submit a plot of the output with the axes labeled.

The Matlab function recur is not a function which comes with Matlab or any of the toolboxes you have installed.  Instead, it is a that must be added to your Matlab directory. 

The Matlab function recur can be found in a zip file at the Mathworks site at the following location:

https://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=2148

Extract the file recur.m to the current directory shown at the top of the Matlab window.

On the other hand, you can copy and paste the script below into a text file like Notepad and save it as recur.m in the current directory shown at the top of the Matlab window.

function y = recur(a,b,n,x,x0,y0);

%

% y = recur(a,b,n,x,x0,y0)

%  solves for y[n] from:

% y[n] + a1*y[n-1] + a2*y[n-2]... + an*y[n-N]

%   =  b0*x[n] + b1*x[n-1] + ... + bm*x[n-M]

%

% a, b, n, x, x0 and y0 are vectors

% a = [a1 a2 ... aN]

% b = [b0 b1 ... bM]

% n contains the time values for which the solution will be computed

% y0 contains the initial conditions for y, in order,

%    i.e., y0 = [y[n0-N], y[n0-N+1], ...,y[n0-1]]

%    where n0 represents the first element of n

% x0 contains the initial conditions on x, in order

%    i.e., x0 = [x[n0-M],...,x[n0-1]]

% the output, y, has length(n)

%

N = length(a);

M = length(b)-1;

if length(y0) ~= N,

  error('Lengths of a and y0 must match')

end

if length(x0) ~= M,

error('Length of x0 must match length of b-1')

end

y = [y0 zeros(1,length(n))];

x = [x0 x];

a1 = a(length(a):-1:1);             % reverses the elements in a

b1 = b(length(b):-1:1);      

for i=N+1:N+length(n),

  y(i) = -a1*y(i-N:i-1)' + b1*x(i-N:i-N+M)';

end

y = y(N+1:N+length(n));

To get information on how to use the function, at the Matlab prompt, type:

EDU>>help recur

It might be helpful to change the index of the difference equation such that the highest index is n rather than n+2.

    Are your plots the same?  If not, why not?

Reference no: EM131071469

Questions Cloud

Process is necessary-complementary to strategic management : Defend the Process of developing a mission statement. Why do you feel that this process is necessary and complementary to strategic management? Support you answer with at least two examples.
Supply technique versus others : 1. Class - JIT replenishment ensures that items are delivered to the point of use shortly before they are needed in the correct quantity and helps to reduce storage costs. There is no inherent assumption about better quality associated with JIT an..
Many types of physical and mental maladies : Present an argument supporting the position that the ADA has been appropriately interpreted and applied by the courts (in terms of the types of disabilities covered), or that it has not (for example, that it has been overly interpreted and applied to..
Theory of differential rent based on accessibility : Explain Von Thunen’s theory of differential rent based on accessibility. Consider the basic case of a single agricultural good. Be sure to make clear the key assumptions and major results. Go on to explain how the model works when there are two agric..
Discrete-time signals and systems : A discrete-time system can be described in one of two ways.  One is by the unit-pulse response of the system, and the other is by the difference equation.  In the first case, if we are given an input and want to find the output, we have to convolv..
Examine a major change in your life : Prepare this assignment according to the APA guidelines found in the APA Style Guide, located in the Student Success Center. An abstract is not required.
Using annual worth analysis and an interest rate : XBC Inc. is planning to buy a new car. Model A costs $22,000 and is expected to have a life of 4 years. Model B costs $35,000 but it is expected to last 6 years. Model B provides a better warranty and it will save the company an average of $1,000 per..

Reviews

Write a Review

Other Engineering Questions & Answers

  Example of a biological organism or process

Identify an example of a biological organism or process that has been used to create fracture resistant materials. Locate a relevant journal article (or articles) and describe the following:

  Constant pressure combustion chamber

Saturated liquid butane enters an insulated constant pressure combustion chamber at 25?C, and x times theoretical oxygen gas enters at the same pressure and temperature. The combustion products exit at 3400 K.

  Prepare a report on quality function deployment

You need to prepare a report and presentation on the given case study. I have the data for "Quality function deployment" but I need to do professional report and presentation.

  Find vov and id at which the transistors must be operating

Assume that the bandwidth of the cascode amplifier is primarily determined by the input circuit. If Cgd = 0.1Cgs and the dc gain of the CS amplifier is 50, what is the value of N?

  Determine the magnitude of ft

As this is done, each of his feet is subjected to a reactive force of Nt = 400 N. If the resultant moment produced by forces Ft and Nt about the ankle joint A is required to be zero, determine the magnitude of Ft.

  Determine the von mises distribution in the plate

The plate is uniformly loaded from the bottom surface with a pressure load of 15 kN/m2. Elastic modulus is E = 210 x 109 N/m2 and Poisson's ratio is v = 0.33. Determine the von Mises distribution in the plate.

  Write an interrupt service routine

ELE3EMB Assignment- Write an interrupt service routine (C code) named ‘posi RXD'. The interrupt service rou- tine runs whenever a byte is received via the RS-232 connection to the PC.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Problem based on simple interest realted issues

Is there a difference in average selling price based on whether the house is on the water front or not?

  Temperature of the balls

If the temperature of the balls after quenching is 74°C, determine the rate at which heat needs to be removed from the water in order to keep its temperature constant at 50°C.

  What is the phase margin obtained

What is the phase margin obtained? To increase the phase margin, a resistance R is connected in series with CC. What is the value of R that results in Fz =∞, and what is the resulting phase margin?

  Find the values of af - rin and rout

It is required to derive expressions for Af ≡Vo/Is, Rin , and Rout . Assume that C1 and C2 are sufficiently small that their loading effect on the basic amplifier can be neglected. Also neglect ro. Find the values of Af , Rin , and Rout for the ca..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd