SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 209 Weeks Ago, 4 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 04 Dec 2017 My Price 10.00

(Finite Impulse Response) filter can be represented

i need the c++ code for this assignment and i also the flow chart of the program

ECE 206/L 1 LAB EXERCISE #9: C++ Programming Finite Impulse Response Filter (Array Usage) Prelab: Preliminary C++ Program Introduction: An FIR (Finite Impulse Response) filter can be represented by ?[?] = ∑ ?[? − ?]ℎ[?] min(?−1,?) ?=0 (1) where ? is the number of coefficients, ℎ[?] is the impulse response of the filter, ?[? − ?] is the input of the filter delayed ? clock cycles, ?[?] is the output of the filter, and ?[?] = 0 for ? < 0. A discrete filter accepts a sequence of data (input), one at a time, and produces a new sequence of data (output), one at a time. In the above equation, ? is the time index, ? = 0, 1, 2, …. The filter behavior is explained below. At ? = 0, the filter gets only one input which is ?[0], so the filter uses ?[0] to generate the output ?[0] at time moment of ? = 0. At ? = 1, the filter has two inputs available which are ?[0], ?[1], so it will use these two values to generate the output ?[1]. When the number of input data grows higher than 35, the filter only uses the latest 35 inputs to compute the output. In other words, equation (1) can be split into the following two equations: ?[?] = ∑?[? − ?]ℎ[?] ? ?=0 , ? < ? (2) and ?[?] = ∑ ?[? − ?]ℎ[?], ? ≥ ? ?−1 ?=0 (3) where ? = 35 which is the order number for the filter we use below. From equation (2), we can calculate ?[?] for ? < 35 as follows: ?[0] = ℎ[0] ?[1] = ?[1]ℎ[0] + ?[0]ℎ[1] ?[2] = ?[2]ℎ[0] + ?[1]ℎ[1] + ?[0]ℎ[2] … ECE 206/L 2 From equation (3), we can calculate ?[?] for ? ≥ 35 as follows: ?[35] = ?[35]ℎ[0] + ?[34]ℎ[1] + ⋯ ?[3]ℎ[32] + ?[2]ℎ[33] + ?[1]ℎ[34] ?[36] = ?[36]ℎ[0] + ?[35]ℎ[1] + ⋯ ?[4]ℎ[32] + ?[3]ℎ[33] + ?[2]ℎ[34] ?[37] = ?[37]ℎ[0] + ?[36]ℎ[1] + ⋯ ?[5]ℎ[32] + ?[4]ℎ[33] + ?[3]ℎ[34] ⋯ A given optimal equiripple FIR (Finite Impulse Response) filter has the following specification: Sample rate: 10 kHz (0.0001 sec / sample); Passband: 0 – 2.5 kHz (lowpass), 0.5 dB maximum ripple; Stopband: 3.0 – 5 kHz, 50dB minimum attenuation. Using the Parks-Mcclellan program, we obtain the following impulse response values (scaled up by 2 15; ie. to get actual value, divide by 2 15), with ? = 35. h(0) = h(34) = 361.922 h(9) = h(25) = 812.822 h(1) = h(33) = 589.000 h(10) = h(24) = -934.419 h(2) = h(32) = 52.556 h(11) = h(23) = -1082.725 h(3) = h(31) = -538.095 h(12) = h(22) = 1547.666 h(4) = h(30) = -58.657 h(13) = h(21) = 1083.109 h(5) = h(29) = 499.472 h(14) = h(20) = -3229.928 h(6) = h(28) = -251.531 h(15) = h(19) = -1275.738 h(7) = h(27) = -785.168 h(16) = h(18) = 10268.660 h(8) = h(26) = 381.999 h(17) = h(17) = 17571.900 Courtesy: Dale Clover & John Deller, Digital Signal Processing and Microcontroller, Motorola University, Prentice-Hall, 1999. Tasks: Write a C++ program to do steps 1 to 4 and use Excel to do step 5: 1. Create three arrays ?[600], ℎ[35], and ?[600]. 2. Fill the ? array with the 600 sample values of ?(?) = 100 sin(4000 ??) for 0 ≤ ? < 0.06 with rate of Δ? = 0.0001 per sample. Note that the frequency for the sinewave is 2 KHz. 3. Compute ?[?] for 0 ≤ ? < 0.06. 4. Store the 600 sample values of ?[?] in file filex and store the 600 sample values of ?[?] in file filey. 5. Plot ?[?] and ?[?] versus ? on the same graph using Excel. Compare and comment on the amplitude of the two sinewaves ?[?] and ?[?]. ECE 206/L 3 Program Outcomes and Discussions: 1. Repeat steps 1 to 5 for ?(?) = 100 sin(4000 ??), frequency 2 kHz. 2. Repeat steps 1 to 5 for ?(?) = 100 sin(6000 ??), frequency 3 kHz. 3. Repeat steps 1 to 5 for ?(?) = 100 sin(8000 ??), frequency 4 kHz. 4. Compare the amplitudes of the two sinewaves ?[?] and ?[?] for frequencies 2 kHz, 3 kHz, and 4 kHz. Categorize the filter either as low pass filter, high pass filter, or band-pass filter. Show Instructor or Lab Assistant: Show well-documented and correct C++ program, and run output to verity that your program work as intended.

Attachments:

Answers

(5)
Status NEW Posted 04 Dec 2017 01:12 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)