%% OIP3 Testbench
% Use the |OIP3 Testbench| block to verify the output third order intercept
% (oip3) of an |Amplifier| block.
%%
% Open the model. 
open_system('oip3_example.slx')
%%
% Open the amplifier block and change the following under
% *Nonlinearity*:
% 
% * Intercept points convention = Output
% * IP3 = 20
% 
%%
% In the OIP3 Testbench block, clear the following:
% 
% * Simulate noise (both stimulus and DUT internal)
% * Show Response spectrum

%%
% Run the model. You will see that the display shows a oip3 value of 20 dB.
%%
% 
% <<../oip3_2.png>>
% 

%% 
% Copyright 2012 The MathWorks, Inc.