Description — Query description
'Blocks Linearized to Zero' (default) | character vector
Query description, specified as 'Blocks Linearized to Zero'. You can add your own
description to the query object using this property.
Usage
After creating a linqueryIsZero query object, you can:
- Find all the blocks in a LinearizationAdvisor object that linearize to zero by using
the linqueryIsZero query directly with the find command. - Create a CompoundQuery object by logically combining the linqueryIsZero query
with other query objects.
Object Functions
find Find blocks in linearization results that match specific criteria
Examples
Find All Blocks That Linearize to Zero
Load the Simulink model.
mdl = 'scdpendulum';
load_system(mdl)
Linearize the model and obtain the LinearizationAdvisor object.
opts = linearizeOptions('StoreAdvisor',true);
io = getlinio(mdl);
[sys,op,info] = linearize(mdl,io,opts);
advisor = info.Advisor;
Create query object, and find all blocks that linearize to zero.
qZero = linqueryIsZero;
advZero = find(advisor,qZero)
17 Objects — Alphabetical List