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

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

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

%%
% Calculate cascaded oip3 value.
oip3val = cumoip3(rfch)