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
a) Let T(n) be a running time function defined as T(n) = 3n^2 + 2n +...
a) Let T(n) be a running time function defined as T(n) = 3n^2 + 2n + 5, is this ϴ(n^2 )? Explain prove your answer using the definitions of big-o and omega notations. b) Solve the following recurrence relations using Master theorem. a. ?(?) = 3? ( ?/3 ) + ? b. ?(?) = 5?( ?/2 ) + 2?^2 please help them with both
Analyze the following codes by computing their running time, T(n). 1) int function ( int n)...
Analyze the following codes by computing their running time, T(n). 1) int function ( int n) { int sum; for (int i = 0; i < n; i++) ​ sum = sum + (i * n); return sum; } 2) int function(int n) { ​int sum; ​ ​for (int i = 0; i < n; i++) ​​if (n < 1000) ​​​sum++; ​​else ​​​sum += function(n); } 3) int function(n) { ​int s = 0; ​for (int i = 1; i...
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
Compute the unit-­pulse response h[n] for the discrete-­time system y[n + 2] - 2y[n + 1]...
Compute the unit-­pulse response h[n] for the discrete-­time system y[n + 2] - 2y[n + 1] + y[n] = x[n] (for n = 0, 1, 2, 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.
Write a function that will accept a list of numbers and an integer (n). The function...
Write a function that will accept a list of numbers and an integer (n). The function should return a list containing every nth item from the input list, always starting with the first item in the list. The original list should not be modified. For example, if the function is passed the list [8, 3, 19, 26, 32, 12, 3, 7, 21, 16] and the integer 3, it will return the list [8, 26, 3, 16] If the function is...
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?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT