Extracting Values from Simulation

This section continues the example from Example: Water-Tank System. At this stage in the example, linearization point objects have been created in the MATLAB® workspace. See Configuring the Model for Linearization Using Functions for more information on creating linearization point objects.

Use Simulink® Control Design™ software to extract operating points from a simulation of your model at specified times, such as when the simulation reaches a steady state solution.

For example, to create an operating point object for the water-tank model after it has simulated for 20 time units, type

watertank_op=findop('watertank',20)

MATLAB software displays the operating point at time t=20.

Operating Point for the Model watertank.
 (Time-Varying Components Evaluated at time t=20)

States: 
----------
(1.) watertank/Controller/Integrator
      x: 1.25 
(2.) watertank/Water-Tank System/H
      x: 9.99
 
Inputs: None
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS