Write a matlab function fcosine which will generate the

Assignment Help Electrical Engineering
Reference no: EM13345477

Basic Signals
1. Generate and plot (using MATLAB'S stem command) the sequence
x[n] = (0.95)n cos(?/20 n)
for 0 ≤ n ≤ 63. Note that MATLAB'S indexing for the first element starts with 1 and not 0, so you will have to adjust for this in your plot.
2. The following is a simple example of a MATLAB function framp which generates an N-point ramp x[n] = n for 1 ≤ n ≤ N. The input argument is N and the function generates the desired values.
function x=framp(N)
% function x=framp(N)
% Generates an N-point ramp sequence
n=l:N;
x=n' ;
Write a MATLAB function, fcosine, which will generate the values from a finite-length sinusoid A cos(??0n + ?) for n1≤ n ≤ nf. The function will need a total of five input arguments: A, ?0, ?, n1, and nf. The function should return a column vector which contains only the desired values of the sinusoid. Test your function by plotting the results with A = 4, ?0 = ?/10, ? = ?/4, n1 = -20, and nf = 20.
Impulse Response and Step Response
Consider an LTI system where the input x[n] and output y[n] satisfy the following difference equation (assume initial rest conditions):

3. Using filter, generate and plot the response y[n] for -10 ≤ n ≤ 100 when the input is x[n] = ??[n], the unit impulse sequence.
4. Generate and plot the response y[n] for -10 ≤ n ≤ 100 when the input is x[n] = u[n], the unit step sequence.
System Functions, Frequency Response, and Pole/Zero Plots
The system function of the LTI system in Exercises 3 and 4 is given by:

5. Using freqz with N = 512, make plots of the magnitude and phase responses |H(?)| and ?H(?) for 0 ≤ ? ≤ ?. Specify what type of filter this system represent s(i.e. lowpass, highpass, bandpass, etc.).
6. Use zplane to make a pole/zero plot of all finite poles and zeros of H(z). (Hint: To determine all finite poles and zeros, Express H(z) in positive powers of z by multiplying the numerator and denominator by an appropriate power of z.)

Reference no: EM13345477

Questions Cloud

An electric oven operates at 120v if its power rating is : an electric oven operates at 120v. if its power rating is 0.6kw what amount of current does it draw and how much
A certain cross section lies in the x-y plane if 3x1020 : a certain cross section lies in the x-y plane. if 3x1020 electrons go through the cross section in the z-direction in
An airplane flying at a speed of 180 mph at an altitude of : an airplane flying at a speed of 180 mph at an altitude of 40ft drops a large package at point a. the package has a
Nicotine a component of tobacco is composed of c h and n a : nicotine a component of tobacco is composed of c h and n. a 12.075 mg sample of nicotine was combusted producing 32.757
Write a matlab function fcosine which will generate the : basic signals 1.generate and plot using matlabs stem command the sequence xn 0.95n cos?20 n for 0 le n le 63. note
Converting liquid water to solid ice releases 144 kcalmol : converting liquid water to solid ice releases 1.44 kcalmol.awhat is the sign of delta h for this process?bhow many
Calculate the equilibrium partial pressure of 2brcl : a reaction mixture initially contains a br2 partial pressure of 765 torr and a cl2 partial pressure of 730 torr at 150
A painter is standing on a work platform that is 27 feet : a painter is standing on a work platform that is 27 feet above ground level. for fall protection the workers safety
92 l of liquid water at 25c is combined with 10 kg of : 9.2 l of liquid water at 25c is combined with 1.0 kg of liquid h2so4 at 25c. estimate the temperature of the sulfuric

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Explain how does the carrier mobility depend on t

Which sample produces greater Hall voltage: long and narrow or short and wide Thickness (d) is same in both the cases. With little explanations please. 1) If the concentration of scattering centers increase in the semiconductor, would it increase o..

  How to make adjustments if the output must be put in state

1)How do you use the Cayley-Hamilton technique to find the state transition matrix and the state equation output y 2) How do you draw the standard form simulation diagram given a higher-order differential equation

  Calculate the output power of the induction motor

a 400v induction motor runs with slip 3% and consumes 5800w from the supply. it the stator losses equal 500w and the mechanical losses are 100w. calculate the output power of the motor

  Prove that the electrons will not reach the positive plate

Electrons are liberated with zero velocity from the negative plate of a parallel plate capacitor, to which is applied a magnetic flux density B parallel to the plates. Prove that these electrons will not reach the positive plate.

  Calculate the speed when the current has fallen to 50 amps

A series motor runs at 600 rpm when taking 110 amps from a 230 V supply. The resistance of the armature circuit is 0.12 ohms and that of the series winding is 0.03 ohms. Calculate the speed when the current has fallen to 50 amps

  Explain voltage in complex forms

Voltage in complex forms, An engine consumes 10kw of power and 4kvar reactive power at a current of (6+j4)Amps

  Find an expression for load current up to fifth harmonic

A single phase full bridge inverter feds power at 50Hz to RLC load with r=5 ohms , l=0.3H and C=50μF. The dc input voltage is 220volts. (a) Find an expression for load current up to fifth harmonic

  Find the value of fs so that the reconstructed signal

consider the back to back cascade of an ideal C to D and D to C converter. Both have the same sampling rate fs. Suppose that the signal being sampled is: x(t) = cos(324*pi*t - pi/4) + cos(80*pi*t - pi/4)

  What is spectral density at 200 khz from carrier frequency

Calculate the Fourier Transform of f(t) = 5 sinc(-2t/100), and graph the magnitude and phase as a function of f. If the signal of problem 1 is delayed by 0.1 ms. What is the new Fourier Transform.

  Find electric feild density as a function of radial distance

A pipe of inner radius 4 cm, outer radius 6 cm, and infinate length is centered on the z-axis. Charge is evenly distributed within the wall of the pipe in the amount of 16 coulombs per meter length.Find and Plot the electric feild density as a fun..

  How to compute the operating temperature

The tungsten filament of an incandescent lamp had aresistance of 7 ohms at a room temperature of 24oC. When it is connected to the electric source the resistance rises to 96ohms. Compute the operating temperature. The inferred zero fortungsten is ..

  Find the zero-input and zero-state components of response

Find the output y[n] of an LTID system specified by the equation 2y[n+2] - 3y[n+1] = y[n] = 4x[n+2] - 3x[n+1]if the initial conditions y[-1] = 0, y[-2] = 1, and the input x[n] = (4)^-n u[n]

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