%% Specify Input and Output Names for MIMO Transfer Function Model
% Transfer function model objects include model data that helps you keep track of what the model represents. For instance, you can assign names to the inputs and outputs of your model.
% Consider the following continuous-time MIMO transfer function model:
% sys(s) = \left[ {\begin{array}{*{20}{c}}
% {\frac{{s + 1}}{{{s^2} + 2s + 2}}}\\
% {\frac{1}{s}}
% \end{array}} \right]
% The model has one input - Current, and two outputs - Torque and Angular velocity.
% First, specify the numerator and denominator coefficients of the model.

numerators = {[1 1] ; 1};
denominators = {[1 2 2] ; [1 0]};

%
% Create the transfer function model, specifying the input name and output names.

sys = tf(numerators,denominators,'InputName','Current',...
        'OutputName',{'Torque' 'Angular Velocity'})

% Copyright 2012 The MathWorks, Inc.