%% Extract Discrete-Time Transfer Function Data
% For this example, consider tfData.mat which contains a discrete-time SISO transfer function sys2.
% Load the data and use tfdata to extract the numerator and denominator coefficients along with the sample time.

load('tfData.mat','sys2');
[num,den,ts] = tfdata(sys2)

% num and den are returned as cell arrays. To display data, use celldisp.

celldisp(num)
celldisp(den)

% Copyright 2020 The MathWorks, Inc.