Question

In: Electrical Engineering

a – DSB. Write the code for an m-file (script) to generate a DSB signal. The...

aDSB. Write the code for an m-file (script) to generate a DSB signal. The modulating (message) signal is a single tone signal with frequency 1kHz and the carrier frequency is 30kHz. Time Vector: 3001 points over range from 0 to 3ms (3 cycles of the modulating signal). Plot your original message signal both in time and its spectrum. (Note: the Matlab examples 6.1 and 6.2 will help, but use the cosine functions for your signals instead of sine as in the example). In your report you should include the plots for the modulated signal in time and for the spectrum of the modulated signal.

bAM. For the same message signal and same carrier as in part a. write the code for an m-file to generate an AM signal. Do simulations for the following percentages of modulation: 1. 25% 2. 50% 3. 100% and 4. 125%. In your report you should include the plots for the modulated signal in time and for the spectrum of the modulated signal for each of the 4 cases. Discuss the results relative to the modulation index m.

cSSB. Use Matlab to implement a 4 pole-pair Butterworth band-pass filter to select the lower frequency component of the DSB modulated signal in part a. Plot the signal at the output of the filter in time and its spectrum. (Example 5.1 should be of help).

Part 2. Demodulation

For each of the signals generated in Part 1 in this second part demodulation scheme should be implemented. (Hint: it might be better to implement demodulation right after the modulation since you want to use the modulated signal of part 1 as your initial signal of part 2.) For demodulation you need first to multiply the modulated signal of part 1. (which is considered now to be the received signal assuming no noise was added and no other degradation of the signal happened during transmission = ideal channel) with the carrier. It might help to do the hand calculations too, to know exactly what to expect from your simulations. Use a Butterworth low-pass filter of your choice to select the desired component. You should recover this way your original modulating signal (eventually scaled in amplitude). For AM case do the demodulation part only for case 2, m=0.5.

Solutions

Expert Solution

INPUT CODE FOR A:

OUTPUT:

INPUT CODE FOR B:

INPUT CODE FOR C;

OUTPUT :


Related Solutions

DSB: Write the code for an m-file (script) to generate a DSB signal. The modulating (message)...
DSB: Write the code for an m-file (script) to generate a DSB signal. The modulating (message) signal is a single tone signal with frequency 1kHz and the carrier frequency is 30kHz. Time Vector: 3001 points over range from 0 to 3ms (3 cycles of the modulating signal). Plot your original message signal both in time and its spectrum. (Note: use the cosine functions for your signals). In your report you should include the plots for the modulated signal in time...
Part 1. Single-tone Modulation a –Write the code for an m-file (script) to generate a single...
Part 1. Single-tone Modulation a –Write the code for an m-file (script) to generate a single tone FM signal. The modulating (message) signal is a single tone signal with frequency 1kHz and the carrier frequency is 20kHz. Vary the modulation index as m=0.2; 0.5; 1; 5 and 10. Plot your original message signal and the modulated signal for each value of m. Discuss the results. Use cosine function to define the message signal. b- Repeat the part above only that...
A DSB signal is squared to generate a carrier component that may then be used for...
A DSB signal is squared to generate a carrier component that may then be used for demodulation. (A technique for doing this, namely the phase-locked loop, will be studied in the next chapter.) Derive an expression that illustrates the impact of interference on this technique.
Write a program in a script file that creates m × n matrix with elements that...
Write a program in a script file that creates m × n matrix with elements that have the following values. The value of each element in the last row is the number of the column. The value of each element in the last column is the number of row +1. For the rest of the elements, each has a value equal to the sum of the element below it and the element to the right.
Using Matlab, write code to generate Three signal components We will use a sum of sinusoids,...
Using Matlab, write code to generate Three signal components We will use a sum of sinusoids, all of which are sampled at 10 kHz. Signal 1 should contain a sum of sinusoids with frequencies at 25Hz, 40Hz and 75Hz. Signal 2 should contain a sum of sinusoids with frequencies at 600Hz, 730Hz, and 800Hz. Signal 3 should contain a sum of sinusoids with frequencies at 3500Hz, 4000Hz, and 4200Hz. Choose a variety of amplitudes and phase shifts for the sinusoids....
Write a Matlab script-file probl1.m to execute the requested commands (as much as possible) in the...
Write a Matlab script-file probl1.m to execute the requested commands (as much as possible) in the exercises below. Increase N a number of times according to N = 4, 8, 16, 32, 64, 128, . . . (1) Determine for each N the (exact) error. (2) Determine for N ≥ 16 also the convergence ratio q(h/2). This script should be based on a function-file trap.m (trapezoidal integration) as follows: function [totarea] = trap(N) format long; a = 0; b =...
Write a code to generate a 5 kHz signal using timer. Vary it's duty cycle. Don't...
Write a code to generate a 5 kHz signal using timer. Vary it's duty cycle. Don't use delay function. using any language
Write a script that prompts the user for a pathname of a file or directory and...
Write a script that prompts the user for a pathname of a file or directory and then responds with a description of the item as a file along with what the user's permissions are with respect to it (read, write, execute).
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio...
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio (you can record your own voice for 20 seconds), takes Fourier transform of the signal (probably FFT).
Write a bash script file that tests each file entry in the current directory. It should...
Write a bash script file that tests each file entry in the current directory. It should determine if it is a file or directory. If it is a file, it will determine if it is readable or not. If it is readable, it will display only the first 4 lines to the terminal in sorted order (just sort the first 4 lines). If it is a directory, it should display the contents of that directory (the files and subdirectories). NOTE:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT