Generate the below given two separate BPSK communication signals s1(t) and s2(t) with the given parameters; Signal-1: Generate BPSK signal s1(t) with, number of bits = 2000; carrier frequency f = 2.5MHz, datarate Rb1 = 250kbps, sampling frequency fs = 50MHz, carrier amplitude A = 1. Signal-2: Generate BPSK signal s2(t) with, number of bits = 2000; carrier frequency f = 1MHz, datarate Rb2 = 100kbps, sampling frequency fs = 50MHz, carrier amplitude A = 2. The random bits in signal-1 and signal-2 can be generated using the following commands; b1 = rand(1,2000)>0.5; b2 = rand(1,2000)>0.5; Now add the two signals in the time domain and generate signal r(t) given by; r(t) = s1(t) + s2(t) Note that the signal lengths of s1 and s2 are different. Therefore you can only add s1 and s2 based onthe signal with the shorter length. Example if s1 is of length L1 and if s2 is of length L2 (with L1 < L2) then signal r(t) should only be of length L1, that is you need to add signal s1 with the first L1 samples of signal s2. Likewise if L1>L2 then r(t) should be of size L2. Plots the signals s1 (up to time 4/Rb1), s2 (up to time 4/Rb2) and r (up to time 4/Rb1) and observe the difference. 2.3 In this exercise we observe amplitude modulation (AM) by modulating a message sign m(t) to carrier (cosine) signal c(t), the resulting AM signal is given by x(t) = m(t)c(t). Let us consider two different message signals be given by (1) A cosine wave with a frequency of fm = 500Hz and an amplitude of 1 for a duration of 1sec (2) A sawtooth waveform at a frequency of fm = 500Hz (waveform period of 1/500sec) for a duration of 1 sec Generate the carrier signal c(t) with an amplitude of 1 and a frequency of 5khz for a duration of 1sec. You tasks are to a) Generate the AM signal for the message signal in (1) b) Plot the message, carrier and the AM signals and observe them for (a), over 4/fm seconds. c) Generate the AM signal for the message signal in (2) d) Plot the message, carrier and the AM signals and observe them for (c), ove 4/fm seconds.
padding: 10px 20px;
margin: 4px 2px;