Question

In: Advanced Math

#1. Represent the function: e(t)=5sin31.4t+2sin44t+6sin15.74t+2sin37.68t as a discrete set of N=128 numbers seperated by a time...

#1. Represent the function: e(t)=5sin31.4t+2sin44t+6sin15.74t+2sin37.68t as a discrete set of N=128 numbers seperated by a time increment of (1/N). Using MatLab construct an amplitude spectrum from the data set.

#2. Repeat problem #1 using a data set of 256 numbers at sigma(t)=(1/N) and sigma(t)=(1/2N) seconds. Please show the full code used in matlab to solve the problems.

Solutions

Expert Solution

%%Matlab code for plotting amplitude spectrum
clear all
close all

figure(1)

t=0:1/128:1;
e=5*sin(31.4*t)+2*sin(44*t)+6*sin(15.74*t)+2*sin(37.68*t);
stem(t,e)

title('Amplitude spectrum for N=128')
xlabel('t')
ylabel('e(t)')

figure(2)

t=0:1/256:1;
e=5*sin(31.4*t)+2*sin(44*t)+6*sin(15.74*t)+2*sin(37.68*t);
stem(t,e)

title('Amplitude spectrum for N=256')
xlabel('t')
ylabel('e(t)')

        %%%%%%%%%% End of Code %%%%%%%%%


Related Solutions

Which of the following represent a valid set of quantum numbers? n = 1, l =...
Which of the following represent a valid set of quantum numbers? n = 1, l = 0, ml = -1, ms = +1/2 n = 3, l = 2, ml = -2, ms = -1/2 n = 2, l = 2, ml = -1, ms = +1/2 n = 2, l = 1, ml = 0, ms = 0 n = 2, l = 1, ml = 0, ms = -1/2
Suppose that e(t) is a piecewise defined function e (t) = 0 if 0 ≤ t...
Suppose that e(t) is a piecewise defined function e (t) = 0 if 0 ≤ t < 3 and e(t) = 1 if 3 ≤ t Solve y’’+ 9y = e(t) y(0) = 1 y’(0) = 3
Show that the set {DiracDelta(t-tao): t, tao are real numbers} is a basis set for the...
Show that the set {DiracDelta(t-tao): t, tao are real numbers} is a basis set for the analog complex signal space.
The Time Numbers represent weeks a. Find the mean time for completion of the project b....
The Time Numbers represent weeks a. Find the mean time for completion of the project b. Find the probability that the project will be completed two weeks earlier than the mean time. Preceding Optimistic Most Likely Pessimistic Activity Activity Time Time Time A. Write Book 10 13 17 B. Design Book Cover A 1 1 1 C. Edit Manuscript A 3 6 9 D. Check Editing C 2 3 6 E. Accept Design B 1 1 1 F. Copy Edit...
Show that |N| = |Z|, where N is the set of natural numbers and Z is...
Show that |N| = |Z|, where N is the set of natural numbers and Z is the set of all integers.
Given the vector function r(t)=〈√t , 1/(t-1) ,e^2t 〉 a) Find: ∫ r(t)dt b) Calculate the...
Given the vector function r(t)=〈√t , 1/(t-1) ,e^2t 〉 a) Find: ∫ r(t)dt b) Calculate the definite integral of r(t) for 2 ≤ t ≤ 3 can you please provide a Matlab code?
Solve the equation for a charging capacitor (Vc = Vs(1-e^(t/t))) for an RC Circuit for the ratio of the time (t) to the RC time constant (t):
it is rc time constant problem. 1. Solve the equation for a charging capacitor (Vc = Vs(1-e^(t/t))) for an RC Circuit for the ratio of the time (t) to the RC time constant (t): Show all steps. 2. Using the answer to Part 1, calculate the fraction of a time constant (t) to charge an initially uncharged capacitor to 10% of the source voltage (Vs). Show all steps. 3. Using the appropriate answers from Part 1, calculate the fraction of...
Consider a discrete-time periodic signal x [ n ]   =   cos ( 0 . 7 πn ) (1)...
Consider a discrete-time periodic signal x [ n ]   =   cos ( 0 . 7 πn ) (1) Determine the fundamental period of x[n]. (2) Suppose x[n] is obtained by sampling the continuous-time signal  x ( t )   =   cos   ( πt ), by letting the sampling period to be T s =   0 . 7 and considering the sample values at each n. Is the Nyquist sampling conditions satisfied in this case? Explain and relate this to the answer given before. (3) Under that conditions would...
Let S be a set of n numbers. Let X be the set of all subsets...
Let S be a set of n numbers. Let X be the set of all subsets of S of size k, and let Y be the set of all ordered k-tuples (s1, s2,   , sk) such that s1 < s2 <    < sk. That is, X = {{s1, s2,   , sk} | si  S and all si's are distinct}, and Y = {(s1, s2,   , sk) | si  S and s1 < s2 <    < sk}. (a) Define a one-to-one correspondence f : X → Y. Explain...
Question 2: Calculate the time complexity function T(n) and express it in terms of big-Oh for...
Question 2: Calculate the time complexity function T(n) and express it in terms of big-Oh for the following code: Part a       (hint: make use of sum of geometric progression): for (int i=1; i <= n ; i = i*2) {           for ( j = 1 ; j <= i ; j ++)             {                       cout<<”*”;             } } Part b      (hint: make use of sum of square of a number sequence): for (int i=1; i <= n ; i...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT