Question

This problem involves the statistical analysis of roundoff errors for an IIR second order section. Fig. 6.5 gives a block diagram for a second order FIR filter that has been implemented as two FIR lattice sections. Fig. 6.6 gives a block diagram for the same filter showing the input errors $\left(e_0(n)\right.$ to $\left.e_3(n)\right)$ associated with roundoff errors. The outputs from the adders are rounded from 32 bits by multiplying the adder output by $2^{-16}$ and truncating toward zero. The scaled coefficients are given by $$ \begin{aligned} & K_1=22921, \\ & K_2=-7504 . \end{aligned} $$ Write a Matlab script to compute the contributions to the error due to rounding from each of the error sources. Use the Matlab rand script to generate appropriate random sequences to model each of the roundoff error inputs. Compute the average power for each error output. For example, if the output due to $e_0(n)$ is $d_0(n)$, then the average power for $d_0(n)$ can be computed as $$ P_0=\frac{1}{N} \sum_{k=0}^{N-1} d_0^2(n) $$

   This problem involves the statistical analysis of roundoff errors for an IIR second order section. Fig. 6.5 gives a block diagram for a second order FIR filter that has been implemented as two FIR lattice sections. Fig. 6.6 gives a block diagram for the same filter showing the input errors $\left(e_0(n)\right.$ to $\left.e_3(n)\right)$ associated with roundoff errors. The outputs from the adders are rounded from 32 bits by multiplying the adder output by $2^{-16}$ and truncating toward zero. The scaled coefficients are given by
$$
\begin{aligned}
& K_1=22921, \\
& K_2=-7504 .
\end{aligned}
$$

Write a Matlab script to compute the contributions to the error due to rounding from each of the error sources. Use the Matlab rand script to generate appropriate random sequences to model each of the roundoff error inputs. Compute the average power for each error output. For example, if the output due to $e_0(n)$ is $d_0(n)$, then the average power for $d_0(n)$ can be computed as $$
P_0=\frac{1}{N} \sum_{k=0}^{N-1} d_0^2(n)
$$
Show more…
Digital Signal Processing. Principles, Algorithms and System Design
Digital Signal Processing. Principles, Algorithms and System Design
Winser Alexander and… 1st Edition
Chapter 6, Problem 3 ↓

Instant Answer

verified

Step 1

Generate random sequences for each roundoff error input: $e_0(n)$, $e_1(n)$, $e_2(n)$, $e_3(n)$. You can use the `rand` function in MATLAB to generate random numbers between 0 and 1. For example, `e0 = rand(1, N)` will generate a random sequence of length N for  Show more…

Show all steps

lock
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
This problem involves the statistical analysis of roundoff errors for an IIR second order section. Fig. 6.5 gives a block diagram for a second order FIR filter that has been implemented as two FIR lattice sections. Fig. 6.6 gives a block diagram for the same filter showing the input errors $\left(e_0(n)\right.$ to $\left.e_3(n)\right)$ associated with roundoff errors. The outputs from the adders are rounded from 32 bits by multiplying the adder output by $2^{-16}$ and truncating toward zero. The scaled coefficients are given by $$ \begin{aligned} & K_1=22921, \\ & K_2=-7504 . \end{aligned} $$ Write a Matlab script to compute the contributions to the error due to rounding from each of the error sources. Use the Matlab rand script to generate appropriate random sequences to model each of the roundoff error inputs. Compute the average power for each error output. For example, if the output due to $e_0(n)$ is $d_0(n)$, then the average power for $d_0(n)$ can be computed as $$ P_0=\frac{1}{N} \sum_{k=0}^{N-1} d_0^2(n) $$
Close icon
Play audio
Feedback
Powered by NumerAI
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Join the community

18,000,000+

Students on Numerade


Trusted by students at 8,000+ universities

Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever