%% Transfer Function Model with Inherited Properties
% For this example, create a transfer function model with properties inherited from another transfer function model. Consider the following two transfer functions:
% sys1(s) = \frac{2s}{s^2+8s}  \;\;\;\;and\;\;\;\;
% sys2(s) = \frac{s-1}{7s^4+2s^3+9}.
% For this example, create sys1 with the TimeUnit and InputDelay property set to 'minutes'.

numerator1 = [2,0];
denominator1 = [1,8,0];
sys1 = tf(numerator1,denominator1,'TimeUnit','minutes','InputUnit','minutes')
propValues1 = [sys1.TimeUnit,sys1.InputUnit]

%
% Create the second transfer function model with properties inherited from sys1.

numerator2 = [1,-1];
denominator2 = [7,2,0,0,9];
sys2 = tf(numerator2,denominator2,sys1)
propValues2 = [sys2.TimeUnit,sys2.InputUnit]

% Observe that the transfer function model sys2 has that same properties as sys1.
% Copyright 2018 The MathWorks, Inc.