Simulink Control Design™ - MathWorks

(Tuis.) #1

qIn = linqueryHasInputs(1);
qOut = linqueryHasOutputs(1);
qSISO = qIn & qOut;


Then, QueryType is '(Has 1 Inputs & Has 1 Outputs)'.


You can modify QueryType for your application. For example:


qSISO.QueryType = 'SISO Blocks';


Description — Query description
'' (default) | character vector


Query description, specified as '' by default. You can add your own description to the
query object using this property.


Object Functions


find Find blocks in linearization results that match specific criteria


Examples


Create Complex Query Object


Create a CompundQuery object for finding any blocks that linearize to zero or any non-
SISO blocks that are on the linearization path.


Create a query object for finding all non-SISO blocks.


qNotSISO = ~(linqueryHasOutputs(1) & linqueryHasInputs(1));


Create a query object for finding all blocks on the linearization path.


qOnPath = linqueryIsOnPath;


Create a query object for finding all blocks that linearize to zero.


qZero = linqueryIsZero;


To create a query for finding any blocks that linearize to zero or any non-SISO blocks that
are on the linearization path, combine the other query objects.


CompoundQuery
Free download pdf