Simulink Control Design™ - MathWorks

(Tuis.) #1
paths = getBlockPaths(advisor);

Create logical array indicating which blocks are in the angle_wrap subsystem.

index = contains(paths,'angle_wrap');

Obtain diagnostic information for these blocks.

diags = getBlockInfo(advisor,index)

diags =
Linearization Diagnostics for the Blocks:

Block Info:
-----------
Index BlockPath Is On Path Contributes To Linearization Linearization Method


  1. scdpendulum/angle_wrap/Trigonometric Function1 Yes No Perturbation

  2. scdpendulum/angle_wrap/Trigonometric Function2 Yes No Perturbation

  3. scdpendulum/angle_wrap/Trigonometric Function Yes No Perturbation


Input Arguments


advisor — Diagnostic information for block linearizations
LinearizationAdvisor object | array of LinearizationAdvisor objects

Diagnostic information for block linearizations, specified as a LinearizationAdvisor
object or an array of LinearizationAdvisor objects.

block — Block paths
character vector | cell array of character vectors

Block paths in Simulink model, specified as one of the following:


  • Character vector — Obtain diagnostic information for a single block.

  • Cell array of character vectors — Obtain diagnostic information for multiple blocks.


index — Block indices
positive integer | array of positive integers | boolean array

Block indices, specified as one of the following:

15 Alphabetical List

Free download pdf