Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

15. Step 1: Start with two empty lines and one comment line (followed by % and t

ID: 3807828 • Letter: 1

Question

15. Step 1: Start with two empty lines and one comment line (followed by % and three spaces) : ‘Working with Plots and Figures’. Then, write another comment line (followed by % and three spaces): ‘MATLAB codes for Problem 15’. Step 2: Write MATLAB statements that will do the following functions: Create an array x of 100 input samples in the range 1 to 100 using the linspace() function, Plot the equation y(x) = 20log10(2x) on a semilogx plot. Draw a solid blue line of width 2, and label each point with a red circle. Now create an array x1 of 100 input samples in the range of 1 to 100 using the logspace() function, and plot the same equation on a semilogx plot. . Draw a solid red line of width 2, and label each point with a black star. 16. Plotting Amplitude Modulated Waves Step 1: Understanding the problem Amplitude modulation (AM) is a modulation technique used in electronic communication, most commonly for transmitting information via a radio carrier wave. In amplitude modulation, the amplitude (signal strength) of the carrier wave is varied in proportion to the 4 waveform being transmitted. That waveform may, for instance, correspond to the sounds to be reproduced by a loudspeaker, or the light intensity of television pixels. The amplitude modulated signal is defined as: AM = (1 + m×cos(2fmt)× Acos(2fct) Where the low frequency (in the range of 1 KHz ~ 2KHz) intelligence signal is M = A cos(2fmt) the high frequency (in the range of 100 KHz ~ 200KHz) carrier signal is C= Acos(2fct) and m is the modulating index. If m<1 the modulated signal is called under modulated, if m=1, the modulated signal is called 100% modulated, if m>1, the modulated signal is called over modulated. Step2: First write a comment line (followed by % and three spaces): ‘MATLAB codes for Problem 16’. Step 3: Write MATLAB codes to plot three separate figures, where each figure presents the intelligence signal, the carrier signal and the modulated signal in the range t= 0 to 1/fm from top to bottom of the figure for the cases with m<1, m=1, and m<1. Use figure() and subplot() functions. Write MATLAB codes to show xlabel, ylabel, and title in the plots. Consider the amplitude of the carrier/intelligence signal, A=1 V. Choose a value from the range 103 to 2×103 for the intelligence frequency fm, a value from the range 100×103 to 200×103 for the carrier frequency fc.

Explanation / Answer

% %
% %
% % %

% Plot Using Linespace Function

x = linespace(1,100,100);
y = semilogx(20log10(2x));

z = plot(x,y,'b-');

z(1).LineWidth = 2;
Z(2).MarkerEdgeColor = 'r';

% Plot Using Logspace Function

x1 = logspace(1,100,100);
y1 = semilogx(20log10(2x));

z1 = plot(x1,y1,'r-');

z1(1).LineWidth = 2;
z1(2).Marker = '*';
z1(3).MarkerEdgeColor = 'k';

% %
% %
% % %

% Intelligence Signal Statement

M = A cos(2pifmt)

A = 1;
fm = [103; 2 103];
t = linespace(0, 1/fm);

[X, Y, Z] = A cos(2pifmt);

figure;
subplot(2,2,1);
title('Intelligence Singal');
xlabel('Time (t)');
ylabel('Signal (M)');

% Carrier Signal Statement

C - Acos(2pifct)

A = 1;
fc = [100 103; 200 103]
t = linespace(0, 1/fm)

[X,Y,Z] = A cos(2pifct);

figure;
subplot(2,1,1);
title('Carrier Signal')
xlabel('Time(t)');
ylabel('Signal(C)');

% Modulated Signal Statement

m = linespace(0,1)

[X,Y,Z] = (1+m*cos(2pifmt) * Acos(2pifct))

figure;
subplot(2,2,3);
title('Modulated Signal');
xlabel('Time(t)')
ylabel('Modulated Signal(AM)');

Please follow the comments mentioned in the matlab statements.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote