Question

In: Computer Science

Example: Consider a signal sampled at 1.2 kHz which is composed of 50HZ, 90HZ and 150HZ...

Example: Consider a signal sampled at 1.2 kHz which is composed of 50HZ, 90HZ and 150HZ of sine waves, having amplitudes of 5V, 3V and 2V respectively .
Write a MATLAB program to plot signal in time domain as well as in frequency domain to get information about major frequency components present in the signal.

Solutions

Expert Solution

From the given three signals, the original signal which is sampled is found by adding them.

The sum of signals and given three signals are plotted against time (Time domain).

Then the plots of Amplitudes and Power against frequecy are also plotted, which shows the information about the major frequency component present in the signal.

The major frequency component present in the signal is found as 50 Hz.

The code and screenshots of results are shown below.

Matlab code with explanations:

A1=5; A2=3;A3=2; % Amplitudes
f1=50; f2=90; f3=150; % Frequencies
Fs=1200; %Samplinf frequency
t=0:1/Fs:0.2; % Time scale for plotting the signals
x1=A1*sin(2*pi*f1*t); x2=A2*sin(2*pi*f2*t); x3=A3*sin(2*pi*f3*t); % %Signals
X=x1+x2+x3; % Sum of x1,x2 and x3
plot(t,X)
title('Original signal being sampled')
figure
plot (t,x1,t,x2,t,x3)
title('Composition of original signal')
n=length(X); % they all have the same length ..
Y=fft(X); % Obtain Fourier transform
f = (0:n-1)*(Fs/n);% Frequency scale
figure
plot(f,abs(Y)) % Spectrum
title('Spectrum')
xlabel('Frequncy (Hz)');
ylabel('Voltage (V)');
power = abs(Y).^2/n; % power of the DFT
figure
plot(f,power) % Power spectrum
title('Power')
xlabel('Frequency')
ylabel('Power')

Screenshots:


Related Solutions

A signal with a maximum frequency of 3 kHz is sampled at 50 kHz. What would...
A signal with a maximum frequency of 3 kHz is sampled at 50 kHz. What would the required transition width be in Hertz to... (a) decimate the signal by a factor of 8? (b) decimate the signal by a factor of 5? (c) interpolate the signal by a factor of 4?
Consider a message signal m(t) with bandwidth W = 5.86 kHz. This signal is applied to...
Consider a message signal m(t) with bandwidth W = 5.86 kHz. This signal is applied to a product modulator, together with a carrier wave c t = cos(210000πt) producing the DSB-SC modulated wave s(t). This modulated wave is next applied to a coherent detector producing an output signal y(t). The coherent detector consists of a product modulator that multiplies s(t) by c r = 2cos(222000πt) and a low pass filter which has a cut off frequency 21 kHz. The output...
A carrier signal of (500 kHz) is amplitude modulated to a depth of 75% by a...
A carrier signal of (500 kHz) is amplitude modulated to a depth of 75% by a single tone modulating signal of 18 KHz. The carrier amplitude is 800 Volts , and the antenna equivalent impedance is 70 Ohms. Calculate: 1- modulating wave voltage (Am) [volt] 2- The carrier power (Pc) [Watt] 3- The average output Power (Pt) [watt] 4- The percentage transmission efficiency [%] 5- The lower side band power (PLSB)
A carrier signal with unit amplitude and frequency fc1 = 50 kHz is modulated with a...
A carrier signal with unit amplitude and frequency fc1 = 50 kHz is modulated with a message signal ?1(?)=2cos(2??1?), where f1 = 15 kHz, to produce a DSB-SC signal. This DSB signal must be up-converted to a center frequency fc = 100 kHz. a. Determine the image frequency of the DSB signal. [2] b. An Upper-SSB signal with unit amplitude carrier at the image frequency calculated above also exists in the spectrum. The SSB signal is tone modulated with ?2(?)=4cos(2??2?),...
Specify the aliasing frequency of a signal that has a maximum frequency of 75 kHz and...
Specify the aliasing frequency of a signal that has a maximum frequency of 75 kHz and a sample frequency of 100 kHz. Use the folding diagram.
A normalized message signal has a bandwidth of W = 10 KHz and a power of...
A normalized message signal has a bandwidth of W = 10 KHz and a power of Pm= 0.75 . It is required to transmit this signal via a channel with an available bandwidth of 80 KHz and attenuation of 50 dB. The channel noise is additive and white with a power-spectral density of N0/2 = 10^(-10) watts/Hz. A frequency-modulation scheme, with no pre-emphasis/de-emphasis filtering, has been proposed for this purpose. 1. If it is desirable to have an SNR of...
3. For the following analog signal: xa(t) = 3sin(40πt) + 3cos(50πt) which is sampled at a...
3. For the following analog signal: xa(t) = 3sin(40πt) + 3cos(50πt) which is sampled at a rate of 100 samples/second. a. Design an IIR digital filter that will pass the first component 3sin(40πt) with attenuation of less than 1 dB and suppress the second component 3cos(50πt) at least 50 dB. The filter should be monotonic in the passband and have ripple in the stopband. b. Generate 500 samples of the sampled signal xa(t) at the given sampling rate and use...
3. For the following analog signal: xa(t) = 3sin(40πt) + 3cos(50πt) which is sampled at a...
3. For the following analog signal: xa(t) = 3sin(40πt) + 3cos(50πt) which is sampled at a rate of 100 samples/second. a. Design an IIR digital filter that will pass the first component 3sin(40πt) with attenuation of less than 1 dB and suppress the second component 3cos(50πt) at least 50 dB. The filter should be monotonic in the passband and have ripple in the stopband. ( 2 points ) b. Generate 500 samples of the sampled signal xa(t) at the given...
A communication network has a bandwidth of 10 kHz. Calculate the signal-to-noise ratio in dB if...
A communication network has a bandwidth of 10 kHz. Calculate the signal-to-noise ratio in dB if the capacity of the channel for a 100Kbps [2 Marks] ii. A communications channel with a bandwidth of 4kHz has a signal power to noise ratio of 7. Determine the Channel Capacity. [2 Marks] ii. The bandwidth in b above is reduced by 25%. How much should the signal power be increased to maintain the same channel capacity?
------An analog signal is sampled, quantized, and encoded into a binary PCM wave. The number of...
------An analog signal is sampled, quantized, and encoded into a binary PCM wave. The number of representation levels used is 1024. A synchronizing pulse is added at the end of each code word representing a sample of the analog signal. The resulting PCM wave is transmitted over a channel of bandwidth 24kHz using a 8 PAM system with raised-cosine spectrum. The rolloff factor is 0.5. (a) Find the rate (bit/s) at which information is transmitted through the channel. (b) Find...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT