Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Tips on simulating on a "measured" power amplifier

Subject: Tips on simulating on a "measured" power amplifier

From: drgz

Date: 27 Feb, 2010 11:55:05

Message: 1 of 1


just looking for some tips of how to simplify my MATLAB code.

I got a PA model from a PA that I've designed, and measured one (I got the AM/AM-, AM/PM, output power vs. input power, etc, curves).

Now I want to simulate how the output spectrum of the PA will look like when I put on amplitude modulated signals (64-QAM, etc). I've written some code which kinda works, but I believe there should be an easier way of doing what I want, but as for now I haven't found one, so I thought maybe someone could come with a tip or two.

What I basically do now is:

x = modulated signal
gain_polynomials = polyfit(input_power,gain_curve,some order that fits the data ok)
x_scaled = x * scaling factor to desired peak power of PA, i.e. scaling to the value of the input power which results in 1 dB compression in the gain curve.
y = x.*polyval(gain_polynomials, abs(x));

As mentioned, this works OK, but I hope and assume there is a better/easier way of doing this. So my question is if anyone can suggest something that I can look into / try.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us