%% IIP2 Testbench
% Use the |IIP2 Testbench| block to verify the input second order intercept
% (iip2) of an |Amplifier| block.
%%
% Open the model. 
open_system('iip2_example.slx')
%%
% Open the amplifier block and change the following under
% *Nonlinearity*:
% 
% * Intercept points convention = Input
% * IP2 = 10 dB
% 
%%
% In the IIP2 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 iip2 value of 10 dB.
%%
% 
% <<../iip2_2.png>>
% 
 


%% 
% Copyright 2012 The MathWorks, Inc.