How to plot AM/AM and AM/PM Characteristic using input and output baseband signals?
I have .txt files that contain complex input and output baseband signals of an amplifier. I need to plot the AM/AM (magnitude of Gain vs. Input power) and AM/PM (phase of Gain vs. Input power) Characteristic.
% Calculate input and output power
P_in = 30 + 10*log10( (abs(x_in).^2)/100); % x_in is the input baseband signal
P_out = 30 + 10*log10((abs(x_out).^2)/100); % x_out is the output baseband signal
% Calculate gain
Mag_Gain = P_out – P_in;
Phase_Gain = rad2deg((angle(x_out) – angle(x_in)));
% Then I plot the AM/AM and AM/PM curves
% however the results does not match with the theoretical results.
% Is the way for calculating the power correct?I have .txt files that contain complex input and output baseband signals of an amplifier. I need to plot the AM/AM (magnitude of Gain vs. Input power) and AM/PM (phase of Gain vs. Input power) Characteristic.
% Calculate input and output power
P_in = 30 + 10*log10( (abs(x_in).^2)/100); % x_in is the input baseband signal
P_out = 30 + 10*log10((abs(x_out).^2)/100); % x_out is the output baseband signal
% Calculate gain
Mag_Gain = P_out – P_in;
Phase_Gain = rad2deg((angle(x_out) – angle(x_in)));
% Then I plot the AM/AM and AM/PM curves
% however the results does not match with the theoretical results.
% Is the way for calculating the power correct? I have .txt files that contain complex input and output baseband signals of an amplifier. I need to plot the AM/AM (magnitude of Gain vs. Input power) and AM/PM (phase of Gain vs. Input power) Characteristic.
% Calculate input and output power
P_in = 30 + 10*log10( (abs(x_in).^2)/100); % x_in is the input baseband signal
P_out = 30 + 10*log10((abs(x_out).^2)/100); % x_out is the output baseband signal
% Calculate gain
Mag_Gain = P_out – P_in;
Phase_Gain = rad2deg((angle(x_out) – angle(x_in)));
% Then I plot the AM/AM and AM/PM curves
% however the results does not match with the theoretical results.
% Is the way for calculating the power correct? amplifier MATLAB Answers — New Questions