Question

In: Electrical Engineering

Sampling 2 periods of each signal in (below) with 100 samples and plot the signal with...

Sampling 2 periods of each signal in (below) with 100 samples and plot the signal with respect to the same frequency reference signal cos(ω0t):

a.xa(t)=50sin(100t+0.2)

b.xb(t)=25cos(5000t−π/4)

c.xc(t)=50sin(1000t+ π/4)−20cos(1000t−0.5)

d.xd(t)=30sin(3000(t−5×10−5))

e.xe(t)=25cos(5000t−2.25π)

f.xf(t)=−25cos(5000t+3π/4)

Solutions

Expert Solution

% Plot for Xa(t)

w = 100;
T = 2*pi/w; % Fundamental Time period for one cycle
Ts = T/100; % Ts = 1/Fs i.e. 100 samples per period
t = 0:Ts:(2*T); % For 2 periods 2 * T
x = 50*sin(100*t + 0.2);
plot(t,x);



% Plot for Xb(t)

w = 5000;
T = 2*pi/w; % Fundamental Time period for one cycle
Ts = T/100; % Ts = 1/Fs i.e. 100 samples per period
t = 0:Ts:(2*T); % For 2 periods 2 * T
x = 25*cos(100*t - pi/4);
plot(t,x);



% Plot for Xc(t)

w = 1000;
T = 2*pi/w; % Fundamental Time period for one cycle
Ts = T/100; % Ts = 1/Fs i.e. 100 samples per period
t = 0:Ts:(2*T); % For 2 periods 2 * T
x = 50*sin(1000*t + pi/4) - 20*cos(1000*t - 0.5);
plot(t,x);

% Plot for xd(t)

w = 3000;
T = 2*pi/w; % Fundamental Time period for one cycle
Ts = T/100; % Ts = 1/Fs i.e. 100 samples per period
t = 0:Ts:(2*T); % For 2 periods 2 * T
x = 30*sin(3000*(t - 5*10 - 5));
plot(t,x);


%%%%%%%%%%%%%%%%%%%%%%%%
% plot for xe(t)
w = 5000;
T = 2*pi/w; % Fundamental Time period for one cycle
Ts = T/100; % Ts = 1/Fs i.e. 100 samples per period
t = 0:Ts:(2*T); % For 2 periods 2 * T
x = 25*cos(5000*t - 2.25*pi);
plot(t,x);



%%%%%%%%%%%%%%%%%%%%%%%%%%
% Plot for xf(t)

w = 5000;
T = 2*pi/w; % Fundamental Time period for one cycle
Ts = T/100; % Ts = 1/Fs i.e. 100 samples per period
t = 0:Ts:(2*T); % For 2 periods 2 * T
x = -25*cos(5000*t + 3*pi/4);
plot(t,x);


Related Solutions

Plot the signal s(t) = cos(2πt), and then illustrate the resulting samples with the following sampling...
Plot the signal s(t) = cos(2πt), and then illustrate the resulting samples with the following sampling intervals: [30 points] • Ts= 0.5 sec. • Ts= 0.75 sec • Ts =1 sec. (a) For each case, also sketch the reconstructed continuous time signal from the samples using linear interpolation (i.e. connecting samples by straight lines). (b) In which case the sampled signal has aliasing distortion? What is the minimal sampling frequency and the corresponding sampling interval needed to avoid aliasing?
Plot the absorption mode signal of a Lorentzian line as a function of frequency for w=100...
Plot the absorption mode signal of a Lorentzian line as a function of frequency for w=100 hz, and three values T2 equal to 1.0 sec, 0.3 sec, and 1.0 sec. How is the full width of the peak related to the value of T2?
1. Generate a sine wave with frequency 100 Hz. a. Sample the signal with a sampling...
1. Generate a sine wave with frequency 100 Hz. a. Sample the signal with a sampling frequency (i) 1000 Hz and (ii) 1050 Hz. b. For each frequency in Question 1(a), perform DFT for ONE (1) cycle and ONE and a HALF (1.5) cycles of the waveform. Comment on your observation.
For each of the following subproblems:i. Plot the distribution you’re sampling from (e.g., ifXi∼Exp(λ), plot the...
For each of the following subproblems:i. Plot the distribution you’re sampling from (e.g., ifXi∼Exp(λ), plot the exponentialdistribution with rateλ). See Lab 3 for a reminder on how to do this.ii. Generate a sample of sizen= 10 from the distribution, and find the sample mean.iii. Repeat step ii. 999 times (i.e.,k= 1000), and then plot a histogram of the samples.iv. Add a plot of the approximate normal density on top of the histogram.v. Repeat steps ii. – iv. with sample sizen=...
Use Excel to plot a(t) in m/s^2 versus time for 2 periods of the motion. Use...
Use Excel to plot a(t) in m/s^2 versus time for 2 periods of the motion. Use the equations from the lecture notes that are from the book. . Put this in an Excel sheet call a_t a(t) = -ω^2Acos(ωt)
How the minimum sample rate is defined for sampling a signal? What would be the sampling...
How the minimum sample rate is defined for sampling a signal? What would be the sampling rate for a temperature, voice, and a video signals and why?
1. Use Excel to plot x(t) versus time for 2 periods of the motion. Use the...
1. Use Excel to plot x(t) versus time for 2 periods of the motion. Use the equations from the lecture notes that are from the book. Put this in an Excel sheet call x_t x(t) = A cos(ωt) 2. Use Excel to plot v(t) versus time for 2 periods of the motion. Use the equations from the lecture notes that are from the book. Put this in an Excel sheet call v_t v(t) = -ωAsin(ωt) 3. Use Excel to plot...
convenience samples, snowball samples, and quota samples. Provide a definition and explanation of these three sampling...
convenience samples, snowball samples, and quota samples. Provide a definition and explanation of these three sampling methods. Provide a detailed example of the sampling methods that you have defined.
A study randomly selected 100 samples, each of which consisted of 100 people, and recorded the...
A study randomly selected 100 samples, each of which consisted of 100 people, and recorded the number of left-handed people, X. The table below shows the probability distribution of the data. Find the mean and the standard deviation of the probability distribution using Excel. Round the mean and standard deviation to two decimal places. x P(x) 1 0.01 2 0.01 3 0.04 4 0.02 5 0.02 6 0.09 7 0.08 8 0.04 9 0.07 10 0.02 11 0.04 12 0.04...
plot the double sided amplitude and phase spectrum for the following signal. f(t) = e^(-2|t| )
plot the double sided amplitude and phase spectrum for the following signal. f(t) = e^(-2|t| )
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT