Linearize the plant at the model operating point.blockpath = 'magball/Magnetic Ball Plant';
linsys = linearize(mdl,blockpath);View the default state order for the linearized plant.linsys.StateNameans =3x1 cell array{'height' }
{'Current'}
{'dhdt' }Linearize the plant and reorder the states in the linearized model. Set the rate of change
of the height as the second state.stateorder = {'magball/Magnetic Ball Plant/height';...
'magball/Magnetic Ball Plant/dhdt';...
'magball/Magnetic Ball Plant/Current'};
linsys = linearize(mdl,blockpath,'StateOrder',stateorder);View the new state order.linsys.StateName15 Alphabetical List