www.gusucode.com > rf 案例源码程序 matlab代码 > rf/CalculateCascadedIIP3Example.m

    %% Calculate Cascaded IIP3
% Assign stage-by-stage values of gain, noise figure, IIP3 and stage names.
g = [11 -3 7];
nf = [25 3 5];
i3 = [19 Inf 3];
nm = {'amp1','filt1','lna1'};

%%
% Create an RF chain object.
rfch = rfchain(g,nf,'IIP3',i3,'Name',nm);

%%
% Calculate cascaded iip3 value.
iip3val = cumiip3(rfch)