Main Content

highlight

Highlight linearization path in Simulink model

Description

highlight(advisor) highlights the blocks on the linearization path for the model linearization associated with a LinearizationAdvisor object. The software identifies blocks that are on or off the linearization path. Also, for blocks that are on the linearization path, the software indicates whether they contribute to the linearization result.

example

Examples

collapse all

Load Simulink® model.

mdl = 'scdspeed';
load_system(mdl)

Linearize the model and obtain the LinearizationAdvisor object.

opts = linearizeOptions('StoreAdvisor',true);
io(1) = linio('scdspeed/throttle (degrees)',1,'input');
io(2) = linio('scdspeed/rad//s to rpm',1,'output');
[sys,op,info] = linearize(mdl,io,opts);
advisor = info.Advisor;

Highlight the linearization path.

highlight(advisor)

highlightModel.png

highlightDialog.png

The Simulink model is highlighted as follows:

  • Blue blocks are on the linearization path and contribute to the model linearization.

  • Red blocks are on the linearization path and do not contribute to the model linearization.

  • Gray blocks are not on the linearization path.

Input Arguments

collapse all

Diagnostic information for block linearizations, specified as a LinearizationAdvisor object.

More About

collapse all

Linearization Path

A block is on the linearization path if there is a signal path from at least one linearization input to at least one linearization output that passes through the block.

Version History

Introduced in R2017b