(^4) In the spec1 document, in the Known column, select the magball/Magnetic Ball
Plant/height state.
(^5) Generate the trimming MATLAB code. On the Specification tab, click Trim , and
select Script.
(^6) In the MATLAB Editor window, modify the script to trim the model at multiple
operating points.
a Remove unneeded comments from the generated script.
b Define the height variable, height, with values at which to compute operating
points.
c Add a for loop around the operating point search code to compute a steady-state
operating point for each height value. Within the loop, before calling findop,
update the reference ball height, specified by the Desired Height block.
Your script should look similar to the following code.
%% Specify the model name
model = 'magball';
%% Create the operating point specification object.
opspec = operspec(model);
% State (5) - magball/Magnetic Ball Plant/height
1 Steady-State Operating Points
tuis.
(Tuis.)
#1