%% Specify Input Names for Zero-Pole-Gain Model
% Specify the zeros, poles and gain along with the sample time and create the zero-pole-gain model, specifying the state and input names using name-value pairs.

zeros = 4;
poles = [-1+2i -1-2i];
gain = 3;
ts = 0.05;
sys = zpk(zeros,poles,gain,ts,'InputName','Force')

% The number of input names must be consistent with the number of zeros.
% Naming the inputs and outputs can be useful when dealing with response plots for MIMO systems.

step(sys)

% Notice the input name Force in the title of the step response plot.
% Copyright 2020 The MathWorks, Inc.