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**********************
3 Accuracy of Sampling Let us sample the function gt)cos(2fo) at sampling interval dt- 1, for...
Problem 31: (34 points) 1. (10 points) A pulse width modulated (PWM) signal fPwM(t) in Figure 2. The symbol D represents a duty cycle, a number between zero and one. Determine the compact trigonometric Fourier series coefficients (Co C,11 %) of the signal f(t). 2. (10 points) One use of PWM is to generate variable DC voltages. While the PWM signal is not DC, you should be able to see from your results in part 1 that it hss a...
1. Using the Fourier series analysis Equation 3 for the periodic function r(t) shown in Figure 2.1, determine both the DC coefficient ao and a general expression for the other Fourier series coefficients ak. Do this by hand, not in Matlab. Show all your work in your lab report. You can add these pages as hand-written pages, rather than typing them in to your lab report, if you prefer Hint 1: It will be easiest to integrate this function from...