| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Model-Wide Utilities

When triggered, this block calls linmod or dlinmod to create a linear model for the system at the current operating point. No trimming is performed. The linear model is stored in the base workspace as a structure, along with information about the operating point at which the snapshot was taken. Multiple snapshots are appended to form an array of structures.
The block sets the following model parameters to the indicated values:
BufferReuse = 'off'
RTWInlineParameters = 'on'
BlockReductionOpt = 'off'
The name of the structure used to save the snapshots is the name of the model appended by _Trigger_Based_Linearization, for example, vdp_Trigger_Based_Linearization. The structure has the follow fields:
Field | Description |
|---|---|
a | The A matrix of the linearization |
b | The B matrix of the linearization |
c | The C matrix of the linearization |
d | The D matrix of the linearization |
StateName | Names of the model's states |
OutputName | Names of the model's output ports |
InputName | Names of the model's input ports |
OperPoint | A structure that specifies the operating point of the linearization. The structure specifies the value of the model's states (OperPoint.x) and inputs (OperPoint.u) at the operating point time (OperPoint.t). |
Ts | The sample time of the linearization for a discrete linearization |
Use the Time-Based Linearization block to generate linear models at predetermined times.
You can use state and simulation time logging to extract the model states at operating points. For example, suppose that you want to get the states of the vdp demo model when the signal x1 triggers the Trigger-Based Linearization block on a rising edge.
Open the model and drag an instance of this block from the Model-Wide Utilities library and drop the instance into the model.
Check States and Time on the Save to Workspace control panel
Select OK to confirm the selections and close the dialog box.
At the end of the simulation, the following variables appear in the MATLAB workspace: vdp_Trigger_Based_Linearization, tout, and xout.
Get the index to the first operating point time by entering the following at the MATLAB command line:
ind1 = find(vdp_Trigger_Based_Linearization(1).OperPoint.t==tout);
Get the state vector at this operating point.
x1 = xout(ind1,:);
The trigger port accepts signals of any numeric data type supported by Simulink software.

Type of event on the trigger input signal that triggers generation of a linear model. See the Trigger type parameter of the Trigger block for an explanation of the various trigger types that you can select.
Specify a sample time to create a discrete-time linearization of the model (see Discrete-Time System Linearization).
Sample Time | Specified in the Sample time parameter |
Dimensionalized | No |
![]() | Trigger | Triggered Subsystem | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |