Consider vectors of N time samples. In the time domain, the basis vectors , for n...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider vectors of N time samples. In the time domain, the basis vectors , for n = {0, 1,..., N-1} have a 1 in the n'h slot and a zero elsewhere. In that basis, a signal x[n] is written as an N-vector = x[n]n. V-1 n=0 Let's consider sinusoidal basis vectors b, for k (0, 1,..., N-1}. In order to write the vector in this new basis, we'll need to know the projection of these basis vectors onto the original basis vectors. Please assume that the projection of the new basis vector of index k onto the original basis vector with index n equals (n|bx) = e/2 and the projection the other way (from old basis vector to new basis vector) equals its complex conjugate (bxln) = te 2x#. We can use these projections to write by, the new basis vector with index k, in the original basis as the N-vector of time samples e/2x4 for n (0, 1,..., N 1}. Likewise, we can write original basis vector , as an N-vector in the new basis ase for k (0,1,..., N 1}. (a) Given a value of N, write a Python function that returns an NX N numpy array (matrix) where the kth column is the basis vector written as an N- vector in the original basis. (Note that this will be a matrix of complex numbers.) I will refer to this below as the inverse matrix. (b) Write a Python function that takes an N X N inverse matrix (where the columns are the new basis vectors as vectors in the original basis) and returns an NX N numpy array where the element in the kth row and ph column is the inner product (1)=bb. Examining the results for N = 4, are the sinusoidal basis vectors orthonormal? Explain. (c) Write another function that returns an Nx N numpy array where the column is the basis vector , written as an N-vector in the new, sinusoidal basis. (Note that this will be a matrix of complex numbers.) I will refer to this below as the forward matrix. Explain how the forward matrix is related to the inverse matrix. Examining the results for N = 4, what do you get when you matrix multiply these two matrices? (d) Let's take a time signal in the original basis and see what it looks like in the sinusoidal basis. Take N = 1024 samples of a 1 kHz sine wave with Amplitude A = 1, sampled at F, = 44, 100 Hz. Matrix multiply this signal by the forward matrix for N = 1024. The result will be a complex N-vector iva -convert it to dB using 20. * np. log10 ( np.abs(v)) and plot the result. Also pass the signal to np.fft.fft() to get the DFT of the signal to S and plot it using the same dB measure. Discuss what you find. Try using f = np.arange (N) * Fs/N in a plot of f (x-axis) vs. dB (y-axis). What do you find? What happens if you subract 10 np. log10 (N) from your dB curve computed using np.fft.fft() ? Consider vectors of N time samples. In the time domain, the basis vectors , for n = {0, 1,..., N-1} have a 1 in the n'h slot and a zero elsewhere. In that basis, a signal x[n] is written as an N-vector = x[n]n. V-1 n=0 Let's consider sinusoidal basis vectors b, for k (0, 1,..., N-1}. In order to write the vector in this new basis, we'll need to know the projection of these basis vectors onto the original basis vectors. Please assume that the projection of the new basis vector of index k onto the original basis vector with index n equals (n|bx) = e/2 and the projection the other way (from old basis vector to new basis vector) equals its complex conjugate (bxln) = te 2x#. We can use these projections to write by, the new basis vector with index k, in the original basis as the N-vector of time samples e/2x4 for n (0, 1,..., N 1}. Likewise, we can write original basis vector , as an N-vector in the new basis ase for k (0,1,..., N 1}. (a) Given a value of N, write a Python function that returns an NX N numpy array (matrix) where the kth column is the basis vector written as an N- vector in the original basis. (Note that this will be a matrix of complex numbers.) I will refer to this below as the inverse matrix. (b) Write a Python function that takes an N X N inverse matrix (where the columns are the new basis vectors as vectors in the original basis) and returns an NX N numpy array where the element in the kth row and ph column is the inner product (1)=bb. Examining the results for N = 4, are the sinusoidal basis vectors orthonormal? Explain. (c) Write another function that returns an Nx N numpy array where the column is the basis vector , written as an N-vector in the new, sinusoidal basis. (Note that this will be a matrix of complex numbers.) I will refer to this below as the forward matrix. Explain how the forward matrix is related to the inverse matrix. Examining the results for N = 4, what do you get when you matrix multiply these two matrices? (d) Let's take a time signal in the original basis and see what it looks like in the sinusoidal basis. Take N = 1024 samples of a 1 kHz sine wave with Amplitude A = 1, sampled at F, = 44, 100 Hz. Matrix multiply this signal by the forward matrix for N = 1024. The result will be a complex N-vector iva -convert it to dB using 20. * np. log10 ( np.abs(v)) and plot the result. Also pass the signal to np.fft.fft() to get the DFT of the signal to S and plot it using the same dB measure. Discuss what you find. Try using f = np.arange (N) * Fs/N in a plot of f (x-axis) vs. dB (y-axis). What do you find? What happens if you subract 10 np. log10 (N) from your dB curve computed using np.fft.fft() ?
Expert Answer:
Answer rating: 100% (QA)
a Heres a Python function that returns an NXN numpy array matrix where the kth column is the basis vector bk written as an Nvector in the original basis python Copy import numpy as np def getinversema... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Discuss the Trade-off model and explain its components and the theory behind it. What does that model say to us regarding the optimal capital structure of the firms?
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
Write a short report in which you assess the impact of one piece of health and safety legislation in an organisation of your choice.
-
A racing car, starting from rest, travels around a circular turn of radius 23.5 m. At a certain instant, the car is still accelerating, and its angular speed is 0.571 rad/s. At this time, the total...
-
Define propriety audit. Distinguish between traditional audit and propriety audit. What are the benefits of propriety audit? Is there any provision for such audit in case of companies under the...
-
A motorcycle manufacturer was concerned with declining market share because of foreign competition. To become more efficient, the company was considering changing to a just-in-time (JIT) production...
-
Action Advertising hired Alice Jones as an account executive. She signed an employment contract under which she agreed to work for the agency for a one-year term for an annual salary of $45,000....
-
L4L CA Math Geometry A Credit 3 Quiz Question 10 II Pause Zoom In the figure below, LCAB LCAD. What additional information would be enough to prove A ABC A ADC by the Side-Angle-S B A ABAD B BC DC C...
-
Janet, Karen, and Lisa are equal general partners in JKL Partnership. In Year 1 the partnership made liquidating distributions to each of the partners. Information about the assets distributed and...
-
Sm person stands 2.4m away from a mirrored globe of 0.18m diameter. How large is the image of erson seen in the globe?
-
Some 11,700 Irish customers have been left waiting for goods ordered from Ikea as the furniture giant experiences supply chain issues. The Irish Times reports that the retailer has blamed Brexit and...
-
11. The cell organelle responsible for the packaging of proteins is the a. ribosome. b. Golgi complex. c. rER. d. lysosome. . 12. Which of the following cell organelles contain digestive enzymes? a....
-
Facts of your case: Your office represents Georgina Olivier-Mata in a case against Bank of America. The case has not been filed yet for "sexual harassment". Your employer, Attorney Tina Fey, has been...
-
12) Multiply on a clock: 54 13) Compute 37 mod 7
-
Calculate savings, MPC, MPS, break-even income, and the equilibrium level of income (Y = AE = C + I + G +NX) in the below given information. Draw a graph showing disposable income (Yd) on the...
-
A fad has a typical life cycle of seven stages. Select an answer and submit. For keyboard navigation, use the up/down arrow keys to select an answer. a True b False
-
Linda Lopez opened a beauty studio, Lindas Salon, on January 2, 2011. The salon also sells beauty supplies. In January 2012, Lopez realized she had never filed any tax reports for her business and...
-
Use the Table of Integrals on Reference Pages 610 to evaluate the integral. TT cos'0 de
-
Evaluate the limit, if it exists. x + 2 lim x + 8 x-2
-
Find the volume of the solid that lies inside both of the spheres and x? + y? + z? + 4x 2y + 4z + 5 = 0 x + y? + z? = 4 .2 ,2
-
Market Conditions. The decisions of MNEs to move to new markets invariably take advantage of both market imperfections and market efficiencies. Explain.
-
Ganados Phases. What are the main phases that Ganado passed through as it evolved into a truly global firm? What are the advantages and disadvantages of each?
-
Why Go. Why do firms become multinational?
Study smarter with the SolutionInn App