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.
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 =...
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).
Task 2.5: Write a script that will ask the user for to input a file name...
Task 2.5: Write a script that will ask the user for to input a file name and then create the file and echo to the screen that the file name inputted had been created 1. Open a new file script creafile.sh using vi editor # vi creafile.sh 2. Type the following lines #!/bin/bash echo ‘enter a file name: ‘ read FILENAME touch $FILENAME echo “$FILENAME has been created” 3. Add the execute permission 4. Run the script #./creafile.sh 5. Enter...
Write a R-script to (and show the outputs of your code) (a) Create a sequence of...
Write a R-script to (and show the outputs of your code) (a) Create a sequence of numbers starting at 3.5 and ending at 10.7 with increments of 0.79. Find the variance and mean of those numbers. And finally sort the vector in a decreasing manner (b) Create a 3 different 3 by 3 matrices such that each of the numbers 1,2,...,9 appear exactly once (Sudoku style) in each of the matrices.
To find a positive root for , write a MATLAB script file that uses Bisection method....
To find a positive root for , write a MATLAB script file that uses Bisection method. Choose any initial value that is needed. Use absolute relative approximate error to be less than 0.01. Your code should report the number of iteration and the value of x.
Write a brief shell script that will take in a specific file name, prompt the user...
Write a brief shell script that will take in a specific file name, prompt the user whether they would like to gzip, bzip2, or xz compress the file. Depending on response, the script then ought to compress the provided file with the corresponding method
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT