%% Check Model for Nonlinear Blocks
% Check the Nonlinear Bipolar Transistor example model for blocks with nonlinear equations. You do not have to open the model before running the diagnostic. This model is on the MATLAB® path, therefore you do not have to include the full path into the model name.

nonlinBlocks = simscape.findNonlinearBlocks('ssc_bipolar_nonlinear')

% The diagnostic function found no networks that are linear or switched linear. It found one network that contains nonlinear equations in three blocks. The function displays the names of the blocks in the diagnostic message.
% The function returns a cell array, nonlinBlocks, containing the names of the blocks with nonlinear equations. The number of rows in the array corresponds to the number of blocks found. Each cell contains the name of a block, including the full path to the block from the root of the model.
%
% Copyright 2012 The MathWorks, Inc.