Amplitude Modulation Synthesis function in matlab?

3 visualizaciones (últimos 30 días)
Matlaber
Matlaber el 31 de Mayo de 2019
Respondida: AR el 27 de Feb. de 2025
For Amplitude Modulation, it suppose to have carrier amplitude and modulated amplitude.
however, the matlab built in function which is ammod, i cannot find which is carrier amplitude.
y = ammod(x,Fc,Fs,ini_phase)
Thanks!

Respuestas (1)

AR
AR el 27 de Feb. de 2025
As per my understanding, for “y = ammod(x, Fc, Fs, ini_phase)”, the carrier amplitude is implicitly set to 1. The same can be seen in the example below:
% Parameters
Fs = 1000; % Sampling frequency
Fc = 100; % Carrier frequency
ini_phase = 0; % Initial phase
t = (0:1/Fs:1)'; % Time vector
% Message signal (constant)
x = ones(size(t));
% Modulate the signal
y = ammod(x, Fc, Fs, ini_phase);
% Plot the modulated signal
figure;
plot(t, y);
title('AM Modulated Signal');
xlabel('Time (s)');
ylabel('Amplitude');
grid on;
% Calculate the peak amplitude
peak_amplitude = max(abs(y));
disp(['Peak amplitude of the modulated signal: ', num2str(peak_amplitude)]);
Peak amplitude of the modulated signal: 1
If the need is to explicitly control the carrier amplitude, use the extended syntax that includes the carrier amplitude parameter -
y = ammod(x, Fc, Fs, ini_phase, carramp)
Refer the below link for the same:
Hope this helps!

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by