# AM-AM and AM-PM plots

I have complex baseband signal and its output when passed through power amplifier. How to plot the AM-AM and AM-PM plots?

The AM-AM and AM-PM plots are based on a model that assumes the input to the power amplifier is a single unmodulated tone. According to the model, the output of the power amplifier is a tone of the same frequency with a gain and phase shift that are functions of the input amplitude. If the input is $$A \exp{(j(\omega t+\theta))}$$, the output is $$g_A(|A|)A \exp{(j(\omega t+\theta+g_\theta(|A|)))}$$. Here $$g_A()$$ and $$g_\theta()$$ are functions that compute the gain and phase shift as a function of the input magnitude.