Question

5) An N-point moving-average (running-average) system has the following input-output relation ship: N-1 a) Is the N-point mov

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

Yes This is a causal system.For N=2 ,y(n)=[x(n)+x(n-1)]/2

It depends on the present and past values of the input signal x(n).This is independent of the future values of x(n).

present value > (x(n)) and past value> (x(n-1)

Hence the system is causal.

b)Impulse response,h(n)=(1/N)*ones(1,N)

For N=2, h(n)=[1 1]/2

c)MATLAB:


N=2
h=(1/N)*(ones(1,N))
x=[21 22 22 21 18 19 21 20 19 23 23 22 23 25 27 30 31.5 32 33 32 28 29 28 29 30 32 32 24 24.5 24 28 29 30 31 31 32 33 35 40 43.2 45 44 47 50 47 47.5 48 52 52 53 56 54.5 56 59 62 63 62 63 59 60 62 61 57 59 59.6 63 62 54 54.5 61 63 61.5 63 62 63 70 71 62 55 54 49 46 43 41 41.5 45 43 42 41.5 40 40.5 38 34 38 37 36 35 34.5 35.5 34.5]
y=conv(x,h)
subplot(311)
n=0:1:99
stem(n,x,'m')
xlabel('n')
ylabel('x(n)')
title('Input x(n)')

subplot(312)
nh=0:1:N-1
stem(nh,h,'g')
xlabel('n')
ylabel('h(n)')
title('Impulse response h(n)')

subplot(313)
M=length(x)+length(h)-1
m=0:1:M-1
stem(m,y,'r')
xlabel('n')
ylabel('y(n)')
title('Output y(n) for N=2')

Input x (n) 80 г 60 S 40 20 20 40 60 80 100 Impulse response h (n) 0.5G 0.4 2 0.3 0.2 0.1 F 0.2 0.4 0.6 0.8 Output y(n) for N


N=5
h=(1/N)*(ones(1,N))
x=[21 22 22 21 18 19 21 20 19 23 23 22 23 25 27 30 31.5 32 33 32 28 29 28 29 30 32 32 24 24.5 24 28 29 30 31 31 32 33 35 40 43.2 45 44 47 50 47 47.5 48 52 52 53 56 54.5 56 59 62 63 62 63 59 60 62 61 57 59 59.6 63 62 54 54.5 61 63 61.5 63 62 63 70 71 62 55 54 49 46 43 41 41.5 45 43 42 41.5 40 40.5 38 34 38 37 36 35 34.5 35.5 34.5]
y=conv(x,h)
subplot(311)
n=0:1:99
stem(n,x,'m')
xlabel('n')
ylabel('x(n)')
title('Input x(n)')

subplot(312)
nh=0:1:N-1
stem(nh,h,'g')
xlabel('n')
ylabel('h(n)')
title('Impulse response h(n)')

subplot(313)
M=length(x)+length(h)-1
m=0:1:M-1
stem(m,y,'r')
xlabel('n')
ylabel('y(n)')
title('Output y(n) for N=5')
xlim([0,M-1])

Input x (n) 80 г 60 S 40 20 20 40 60 80 100 Impulse response h (n) 0.2 б 0.15 S 0.1 0.05 2 3 4 Output y(n) for N-5 70 г 60 50


N=10
h=(1/N)*(ones(1,N))
x=[21 22 22 21 18 19 21 20 19 23 23 22 23 25 27 30 31.5 32 33 32 28 29 28 29 30 32 32 24 24.5 24 28 29 30 31 31 32 33 35 40 43.2 45 44 47 50 47 47.5 48 52 52 53 56 54.5 56 59 62 63 62 63 59 60 62 61 57 59 59.6 63 62 54 54.5 61 63 61.5 63 62 63 70 71 62 55 54 49 46 43 41 41.5 45 43 42 41.5 40 40.5 38 34 38 37 36 35 34.5 35.5 34.5]
y=conv(x,h)
subplot(311)
n=0:1:99
stem(n,x,'m')
xlabel('n')
ylabel('x(n)')
title('Input x(n)')

subplot(312)
nh=0:1:N-1
stem(nh,h,'g')
xlabel('n')
ylabel('h(n)')
title('Impulse response h(n)')

subplot(313)
M=length(x)+length(h)-1
m=0:1:M-1
stem(m,y,'r')
xlabel('n')
ylabel('y(n)')
title('Output y(n) for N=10')
xlim([0,M-1])

Input x (n) 80 г 60 S 40 20 40 60 80 100 20 Impulse response h (n) 0.1G 0.08 0.06 0.04 0.02 ︶ 2 Output y(n) for N-10 70 Γ 60

d)The filter averaging operation of N=10 is better than the cases N=2 and N=5.(Look at the responses.)

Add a comment
Know the answer?
Add Answer to:
5) An N-point moving-average (running-average) system has the following input-output relation shi...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For each variable of interest, do the following: 1. Find the mean, five-number summary, range, variance,...

    For each variable of interest, do the following: 1. Find the mean, five-number summary, range, variance, and standard deviation. Display these numbers in a format that is easy to understand. 2. For each variable of interest, use its five-number summary to construct a boxplot. Each boxplot must be constructed horizontally, and must be accompanied by a brief descriptive paragraph that assesses whether the data appear to be symmetrical, left-skewed, or right-skewed. Construct a 95% confidence interval for the mean μ...

  • Conduct a formal hypothesis test of the claim that the mean longevity is less than 57...

    Conduct a formal hypothesis test of the claim that the mean longevity is less than 57 days. Test at significance α=0.05. Your written summary of this test must include the following: Your null and alternate hypotheses in the proper format. The type of distribution you used to construct the interval (t or normal). The P-value and its logical relationship to α (≤ or >). Your decision regarding the null hypothesis: reject or fail to reject. A statement regarding the sufficiency/insufficiency...

  • For each variable of interest – Percent Time Asleep and Longevity – create a grouped frequency...

    For each variable of interest – Percent Time Asleep and Longevity – create a grouped frequency histogram. For each histogram, use a class width of 10; use a lower limit of 0 for Percent Time Asleep and 15 for Longevity. Each histogram must include an informative title, along with correct labels for both axes. For each histogram, include a paragraph that answers each of the following questions: Is the histogram symmetric, skewed to the left, or skewed to the right?...

  • can you upload the answer in excel 7. Following are ages of 30 students in an...

    can you upload the answer in excel 7. Following are ages of 30 students in an ARC Boot Camp class: 18 30 20 21 28 26 20 21 19 22 26 38 18 19 23 25 19 20 18 21 29 35 17 22 19 24 23 21 20 25 Construct an expanded stem-and-leaf display for the given data. Stem Leaves 2. The following data values are the actual low temperatures recorded near the author's home. Construct a frequency distribution...

  • Suppose a binary tree data (in tiny written size) is stored in an array (A) as...

    Suppose a binary tree data (in tiny written size) is stored in an array (A) as given below and root is placed at “0”index. Note the array indices are in larger written size (0 to 74). Show the traversal data of the given tree for a)      In-Order Traversal b)     Post Order Traversal A 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 28 13 36 15 9 22 44 7 10 75 33 19 15...

  • what is output #include<stdio.h> pint main() { int i, j, total; for ( 2 { printf("\n");...

    what is output #include<stdio.h> pint main() { int i, j, total; for ( 2 { printf("\n"); for ( 2 { total = i + j; printf("%d", total); بہا } getchar(); return 0; } Find the for loop content | Output of progrm 5 15 1 11 21 31 41 51 61 2 12 22 32 25 3 13 23 33 43 53 63 4 14 24 34 44 54 64 35 45 6 16 26 36 46 56 66 7...

  • Time Until First Engine Overhaul    Annual Miles Driven    Average Load Weight   Average Driving Speed...

    Time Until First Engine Overhaul    Annual Miles Driven    Average Load Weight   Average Driving Speed    Oil Change Interval 8   42.7   14   49   18 0.7   98.3   20   47   28 8.7   43.5   24   69   19 1.5   110.8   31   62   25 1.3   102.5   30   50   16 1.8   96.9   20   62   24 2.6   92.4   27   51   16 7.1   54.4   20   60   16 8.4   51.4   23   54   22 4   85.4   25   53   32 0.5   120.5   25   52   22 5.4   77.5   22   53   30...

  • West Battery Corp. has recently been receiving complaints from retailers that its 9-volt batteries are not...

    West Battery Corp. has recently been receiving complaints from retailers that its 9-volt batteries are not lasting as long as other name brands. James West, head of the TOM program at West's Austin plant, believes there is no problem because his batteries have had an average life of 60 hours, about 10% longer than competitors' models. To raise the time above this level would require a new level of technology not available to West. Nevertheless, he is concerned enough to...

  • For the two variables of interest: Create a scatter plot with Percent Time Asleep as the...

    For the two variables of interest: Create a scatter plot with Percent Time Asleep as the independent variable x and Longevity as the dependent variable y. The plot must include an informative title, along with correct labels for both axes. Include a plot of the least-squares equation (see #5 below). Calculate the correlation coefficient and the coefficient of determination. Identify any data points on the scatter diagram that appear to be influential. Use Cook's Distance > (4⁄√n) as the criterion...

  • Project 1 Due Date Problem Knight's Tour: The Knights Tour is a mathematical problem involving a...

    Project 1 Due Date Problem Knight's Tour: The Knights Tour is a mathematical problem involving a knight on a chessboard. The knight is placed on the empty board and, moving acording to the rules of chess, must visit each square once. 06-JUN-2018 There are several billion solutions to the problem, of which about 122,000,000 have the knight finishing on the same square on which it begins. When this occurs the tour is said to be closed. Your assignment is to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT