2.6k views
2 votes
Step 2.3 Plot the following equations:

m(t) = 40cos(2π*300Hz*t)
c(t) = 6cos(2π*11kHz*t)
**Give Matlab commands**

1 Answer

4 votes

```matlab

% Define the time range

t = 0:0.0001:0.02; % Time values from 0 to 0.02 seconds with a step size of 0.0001

% Define the modulation signal

m_t = 40 * cos(2*pi*300*t); % Modulation signal m(t) = 40cos(2π*300Hz*t)

% Define the carrier signal

c_t = 6 * cos(2*pi*11000*t); % Carrier signal c(t) = 6cos(2π*11kHz*t)

% Plot the modulation signal

figure;

plot(t, m_t);

xlabel('Time (s)');

ylabel('Amplitude');

title('Modulation Signal m(t)');

grid on;

% Plot the carrier signal

figure;

plot(t, c_t);

xlabel('Time (s)');

ylabel('Amplitude');

title('Carrier Signal c(t)');

grid on;

```


User Dawid Kruk
by
8.6k points