Documentation

highlight

Highlight linearization path in Simulink model

Syntax

highlight(advisor)

Description

example

highlight(advisor) highlights 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.

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)

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.

Introduced in R2017b

Was this topic helpful?