1 answer

3 Accuracy of Sampling Let us sample the function gt)cos(2fo) at sampling interval dt- 1, for...

Question:

3 Accuracy of Sampling Let us sample the function gt)cos(2fo) at sampling interval dt- 1, for frequency values of f 0,0.25,0.5,0.75, 1.0 hertz. In each case, plot on the screen the points of the resulting time series (as isolated red crosses) to see how well it approximates g(t) (plotted as a blue-dotted line, try a very small dt fine sampling). Submit only plots for frequencies of 0.25 and 0.75 Hertz, use xlabel, ylabel, title commands to annotate each plot. For each frequency that you investigated, do you think the sampling time series is a fair representation of the original time series g )? What is the apparent frequency for the sampling time series? (Figure out after how many points (N) the series repeats itself, then the apparent frequency 1/(N*dt). You can do this either mathematically or by inspection. A flat time series has apparent frequency = 0.) Can you guess with a sampling interval of dt = 1 , what is the maximum frequency f of g() such that it can be fairly represented by the discrete time series? (Please attach your Python code.)

3 Accuracy of Sampling Let us sample the function gt)cos(2fo) at sampling interval dt- 1, for frequency values of f 0,0.25,0.5,0.75, 1.0 hertz. In each case, plot on the screen the points of the resulting time series (as isolated red crosses) to see how well it approximates g(t) (plotted as a blue-dotted line, try a very small dt fine sampling). Submit only plots for frequencies of 0.25 and 0.75 Hertz, use xlabel, ylabel, title commands to annotate each plot. For each frequency that you investigated, do you think the sampling time series is a fair representation of the original time series g )? What is the apparent frequency for the sampling time series? (Figure out after how many points (N) the series repeats itself, then the apparent frequency 1/(N*dt). You can do this either mathematically or by inspection. A flat time series has apparent frequency = 0.) Can you guess with a sampling interval of dt = 1 , what is the maximum frequency f of g() such that it can be fairly represented by the discrete time series? (Please attach your Python code.)

Answers

The required MATLAB CODE is as follows:

fs=0.01; %Very high sampling rate
f=1; %Frequency of sinusoid
nCyl=5; %generate five cycles of sinusoid
maxf=nCyl*f;
t=0:fs:maxf; %time index
x=cos(2*pi*f*t); % continious wave

fs1=0.25; %1/0.25 sampling rate
t1=0:fs1:maxf; %time index
x1=cos(2*pi*fs1*t1);

fs2=0.75; % 1/0.75 sampling rate
t2=0:fs2:maxf; %time index
x2=cos(2*pi*fs2*t2);

figure
subplot(2,1,1);
plot(t,x);
hold on;
stem(t1,x1); % plot the first sample
xlabel('Time(s)');
ylabel('Amplitude')
title('f=0.25');

subplot(2,1,2);
plot(t,x);
hold on;
stem(t2,x2); % plot the first sample
xlabel('Time(s)');
ylabel('Amplitude')
title('f=0.75')

**************************************SAMPLE OUTPUT**********************

f-0.25 O ㄒㄧ ㄒㄧㄧㄒ-00000-7 0.5 -0.5 f-0.75 Time(s) 0.5 0.5 Timafc

.

Similar Solved Questions

1 answer
AP Mo kb/4 K The cantilevered beam shown here has a known rigidity, El, and length,...
AP Mo kb/4 K The cantilevered beam shown here has a known rigidity, El, and length, b, and is loaded with a point force and a point moment as shown. (a) Determine all reactions forces and draw the shear and moment diagrams for this loading. (b) Using discontinuity functions and the integration metho...
1 answer
WHAT ROLE SOFTWARE DESIGN PLAYS IN DEVELOPMENT AND WHY IS IT IMPORTANT? WHY 80% OF THE...
WHAT ROLE SOFTWARE DESIGN PLAYS IN DEVELOPMENT AND WHY IS IT IMPORTANT? WHY 80% OF THE EFFORTS GOES INTO THE DESIGN?...
1 answer
In the Check Your Learning section how did they get that value of K? Calculating an...
In the Check Your Learning section how did they get that value of K? Calculating an Equilibrium Constant using Standard Free Energy Change Given that the standard free energies of formation of Ag'(aq), CI (aq), and AgCl(s) are 77.1 kJ/mol, -131.2 kJ/mol, and -109.8 kJ/mol, respectively, ca...
1 answer
Name 4 acute phase proteins that we might find in plasma of a person with an...
name 4 acute phase proteins that we might find in plasma of a person with an inflammatory disorder...
1 answer
1. An injection mokding machine can be purchased and installed for $80,000 It is in the...
1. An injection mokding machine can be purchased and installed for $80,000 It is in the seven-year GDS property class and is expected to be kept in servioe for eight years. It is believed that $12,000 can be obtained when the machine is disposed of at the end of year eight. The net annual value adde...
1 answer
26. The velocity of blood flow is in direct proportion to the total cross-sectional area of...
26. The velocity of blood flow is in direct proportion to the total cross-sectional area of the blood vessels b, slower in the arteries than in capillaries because arteries relatively large diameter slower in the veins than in the capillaries because veins diameter slowest in the capillaries b c. ha...
1 answer
What is the comparison and contrast between the performance measures: - Fama's Nert selectivity measure vs...
What is the comparison and contrast between the performance measures: - Fama's Nert selectivity measure vs Sharpe ratio, Treynor Ratio and Jensens Alpha ratio...
1 answer
1) Carlos has borrowed $8,000 for 8 years at 6% compounded semi-annually. He will repay interest...
1) Carlos has borrowed $8,000 for 8 years at 6% compounded semi-annually. He will repay interest every 6 months plus principal at maturity. He will also deposit X every 6 months into a sinking fund paying 5% compounded semi-annually to pay off the principal at maturity. a) Find X. Carlos goes bankru...
1 answer
I need an OUTLINE ONLY (pseudocode/comments). DO NOT DO THE PROGRAMMING ASSIGNMENT. Part I: PA3 Outline...
I need an OUTLINE ONLY (pseudocode/comments). DO NOT DO THE PROGRAMMING ASSIGNMENT. Part I: PA3 Outline (10 points). Create an outline in comments/psuedocode for the programming assignment below. Place your comments in the appropriate files: main.cpp, functions.h, dealer.cpp, dealer.h, dealer.cpp (a...
1 answer
Part A Write the overall balanced equation for the reaction. 2+ Sn(a)Sn (aq) ||NO (g)NO, (aq),...
Part A Write the overall balanced equation for the reaction. 2+ Sn(a)Sn (aq) ||NO (g)NO, (aq), H (ag) Pt(e) (ag) +2 NO(a) + W0) 3 Sn(s) +NO3 (aq)+8H (aq)3Sn O Sn(a)+2 NO (aq)+ 4H* (aq)Sn (aq) + NO(a) + 2 H,0) O 3 Sn(s)+2 NO, (aq) +8H (aq) 3 Snt (ag) +2NOa)+4H,00) Sn(s)+NO3 (aq) +4H (aq) Sn (a4) + NO...
1 answer
Problem 3. (20 points) Determine the nodal voltages for the network in polar form. Given: Z...
Problem 3. (20 points) Determine the nodal voltages for the network in polar form. Given: Z = 592 20° Answer: V= Z = 692 290° Z=42 -90° V. Z-22 20° E-30 V 250° 1 -0.04 A 290° I = 0.04 A 290° E = 30 V 2 50°C E – 30 V 2500 593 Answer: X. = Answer: I= Answer: VR= V...
1 answer
(2 points) Find the least squares regression line ý = b + b through the points...
(2 points) Find the least squares regression line ý = b + b through the points (-2,0), (2,9), (5,15), (7,20),(10,26). For what value of cis y = 0? =...
1 answer
- Show that average value lor expectatio value of cross product, LÊXB) = <A> <B)
- Show that average value lor expectatio value of cross product, LÊXB) = <A> <B)...
1 answer
After the affordable care act was passed into law, states debated on whether they should adopt...
After the affordable care act was passed into law, states debated on whether they should adopt the Medicaid expansion. Was a state’s decision to adopt the Medicaid expansion influenced by its majority party affiliation? To test this claim, the following data is available. After reviewing the d...
1 answer
What is equity?
What is equity?...
1 answer
Exercises 10.3. Let Xi . . . , x N μ, σ2), whereơ2 s known to be equal to 100. In testing Ho : 25...
Exercises 10.3. Let Xi . . . , x N μ, σ2), whereơ2 s known to be equal to 100. In testing Ho : 25vs. H :H>25,h What sample size n would be necessary if one wishes to reject Ho with probability at least 95 if μ 26? iid se that a coin is to be tossed n times, and you wish to test t...
1 answer
Financial Risk Do you think 54% return for the levered firm's shareholders is better than 30%...
Financial Risk Do you think 54% return for the levered firm's shareholders is better than 30% return for the unlevered shareholders? Why? Why not?...