%% Array of Reduced-Order Models
% For this example, consider a random continuous-time state-space model with 65 states.

rng(0)
sys = rss(65);
size(sys)

% Visualize the Hankel singular values on a plot.

balred(sys)

% For this instance, compute reduced-order models with 25, 30 and 35 states.

order = [25,30,35];
rsys = balred(sys,order);
size(rsys)

% Copyright 2020 The MathWorks, Inc.