Question
Help solve in MATLAB

1. Let m(t) be the 2-bit modulating signal and s(t) cos(at) be carrier signal as shown in Figure 3. Plot these two signals in 2 separated figures using MATLAB with a, = 600Or rad/s and t = 0:7, :0.01 sec where fs = 10MHz be the sampling rate to satisfy Nyquist theorem. Use the zoom in tool of MATLAB to clearly look at the signal if necessary. You can use the MATLAB function below to produce the modulating signal m(t)
media%2Fcc8%2Fcc819850-191c-4936-9450-65
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi,

As per the problem statement, Please find the solution below with in-lined comments:

Note: included zoom feature , As no mentioned like specific zoom requirements , basic zoom on implemented on both plots

Program1: Describes the Plot for Time Vs Modulation Signal as follows:

ModulationSignalPlot.m

% Plot for time Vs 2-bit modulation signal as follows


% Given frequency   in MHz so converting into Hz
% 1MHz = 10^6 Hz
fx = 10^6;
% Given time range
t = 0:1/fx:0.01;

% no of bits
n = 2;

% Finding the Modulating signal as follows
mt = ASK_Modulating_signal(n,t);

%Plot Time Vs Modulating signal
plot(t,mt,'r');
zoom on;

xlabel('Time (sec)');
ylabel('Modulation signal');
title('Time Vs Modulation ');

Please find the output below:

Program2: Plot from Time Vs Carrier Signal as follows:

CarrierSignalPlot.m

% Plot Time Vs Carrier Signal as follows

% Given frequency   in MHz so converting into Hz
% 1MHz = 10^6 Hz
fx = 10^6;
% Given time range
t = 0:1/fx:0.01;

% Given constant
wc = 6*10^3*pi;

% Given Carrier Signal function
st = cos(wc.*t);

%Plot Time Vs Modulating signal
plot(t,st,'g');
zoom on;

xlabel('Time (sec)');
ylabel('Carrier signal');
title('Time Vs Carrier');

Please find the output below:

Please find the ASK_Modulating_signal.m for reference:

function [mt] = ASK_Modulating_signal(n,t)
Amp_level = 0:1/(n-1):1;
mt = zeros(1,length(t));
lm = round(10000*rand(1, length(Amp_level)));
Idmx = round(length(t)*rand(1, length(Amp_level)));

for i=1:length(lm)
    if Idmx(i) < lm(i)
      lm(i) = round(Idmx(i)/3);
    end
   
    if Idmx(i)+lm(i)/2 > length(t)
      mt(1,Idmx(i)-round(lm(i)/2):length(t)) = Amp_level(i);
    else
      mt(1,Idmx(i)-round(lm(i)/2):Idmx(i)+round(lm(i)/2)) = Amp_level(i);
    end
end

end

Thanks

Add a comment
Know the answer?
Add Answer to:
Help solve in MATLAB 1. Let m(t) be the 2-bit modulating signal and s(t) cos(at) be...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problems: 1. Consider the system shown below. Let the input signal to the Ideal Sampler to be: s(...

    just looking for #2, 3, and 4 Problems: 1. Consider the system shown below. Let the input signal to the Ideal Sampler to be: s(t) = 2 cos(2m50t) + 4cos(2m100t) a. (10 points) Determine S(f) and plot it b. (20 points) Let the sampling rate to be: fs 300 samples/sec. Plot the spectrum of the Ideal sample, that is plot S8(f) c. Let the sampling rate to be: fs 175 samples/sec. i. (30 points) Plot S8(f) ii. (10 points) Let...

  • 1. A modulating signal m(t) is given by m(t) = (cos(20nt) – cos(40nt)) a. Find and...

    1. A modulating signal m(t) is given by m(t) = (cos(20nt) – cos(40nt)) a. Find and sketch the spectrum of DSB-SC signal 2m(t)cos (100nt) b. Verify that the DSB-SC modulated signal can be recovered using coherent detection

  • 1. A modulating signal m(t) is given by m(t) = (cos(20nt) – cos(40ſt)) a. Find and...

    1. A modulating signal m(t) is given by m(t) = (cos(20nt) – cos(40ſt)) a. Find and sketch the spectrum of DSB-SC signal 2m(t)cos (100nt) b. Verify that the DSB-SC modulated signal can be recovered using coherent detection. 15 nts

  • 1. A modulating signal m(t) is given by m(t) = 5 (cos(20nt) – cos(40nt)) a. Find...

    1. A modulating signal m(t) is given by m(t) = 5 (cos(20nt) – cos(40nt)) a. Find and sketch the spectrum of DSB-SC signal 2m(t)cos (100nt) b. Verify that the DSB-SC modulated signal can be recovered using coherent detection.

  • Consider the message signal m(t):

    Consider the message signal m(t):a. Sketch the AM signal u(t)=[ A + m(t) ] Cos(wct) for modulation indexes μ = 0.5 and μ = 2.0 by assuming the carrier frequency to be much higher than the bandwidth of m(t) b. Determine the efficiency percentage (η = ps/pt) for μ = 0.5. Herein, Ps and Pt are sideband and total powers respectively, and Pt= Ps + Pc , in which Pc is the carrier power. Hint : Take into account the Parseval's property. c. If the AM waveforms corresponding...

  • Hello, I have questions on Matlab. Let's say that I have an equation. Signal x(t)= cos(2*pi*10*t)...

    Hello, I have questions on Matlab. Let's say that I have an equation. Signal x(t)= cos(2*pi*10*t) is sampled at sampling frequency of Fs=100 Hz. How do I both Upsample and downsample this frequency by a factor of 2 in Matlab? I need to see the code and how the graphs look. Thank you for the help.

  • need matlab code Exercise: Use MATLAB to generate a low frequency signal: xy(t) = 3 cos(1400)...

    need matlab code Exercise: Use MATLAB to generate a low frequency signal: xy(t) = 3 cos(1400) And a higher frequency signal: xz(t) = 2 cos(10,000st) Now add these two signals together to generate the dual-component signal: y(t) = 3 cos(14007a)+ 2 cos(10,000) Points to be addressed: Again, manually calculate the theoretical magnitude spectra of y(t) and show this in your report (use Microsoft Visio or similar for your diagram). Clearly label all axes! Contrast this working to what you see...

  • The signal m)811 + cos(20rt) cos(1o0t)] (t is in seconds) is sa using an ideal sampling...

    The signal m)811 + cos(20rt) cos(1o0t)] (t is in seconds) is sa using an ideal sampling function at the rate of 150 samples/sec. Ea is encoded using a 16-level quantizer. ch sample a. Calculate the bandwidth of the signal m(). (2 Points) b. Is sampling done at, below or above Nyquist rate? Show your work (2 Points) (2 Points) c. Determine the rate of transmission (in bps). (3 Points) d. Find the signal-to-quantization noise ratio (SNR).

  • 4. [20 points] A modulating signal m(t) is given by m(t)-cos(100nt)cos(500nt): 1) [5 points] Sketch the...

    4. [20 points] A modulating signal m(t) is given by m(t)-cos(100nt)cos(500nt): 1) [5 points] Sketch the spectrum of m(t). 2) [5 points] Find and sketch the spectrum of the DSB-SC signal 2m(t)cos(1000t). 3) [5 points] From the spectrum obtained in 2), suppress the LSB to obtain the USB spectrum and sketch it. 4) [5 points] Knowing the USB spectrum in 3), write the expression puse(t) for the USB signal For full credit, label frequencies and magnitudes of the spectra for...

  • Suppose you wish to sample an amplitude modulated signal x(t)-m(t) cos(Q,t) where m(1) is the message...

    Suppose you wish to sample an amplitude modulated signal x(t)-m(t) cos(Q,t) where m(1) is the message signal and Ω,-2π 10 (rad/sec) is the carrier frequency 8.6 a) If the message is anacusic signal with frequencies in a band of [0, 22] kHz, what would be maximum frequency present in x(t)?

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT