Amplitude Modulation Synthesis function in matlab?

3 次查看(过去 30 天)
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!

回答(1 个)

AR
AR 2025-2-27
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!

类别

Help CenterFile Exchange 中查找有关 Modulation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by