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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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