www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/ViewAndModifyOperatingPointObjectMATLABCodeExample.m
%% View and Modify Operating Point Object (MATLAB Code) % This example shows how to view and modify the states in a Simulink model % using an operating point object. % Copyright 2015 The MathWorks, Inc. %% % Create an operating point object from the Simulink Model. sys = 'watertank'; load_system(sys) op = operpoint(sys) %% % The operating point, |op|, contains the states and input levels of the % model. %% % Set the value of the first state. op.States(1).x = 1.26; %% % View the operating point state values. op.States %% % If you modify your Simulink model after creating an operating point object, % then use |update| to update your operating point.