function [z,p,k,Ts,Td] = zpkdata(sys,flag)
%ZPKDATA  Quick access to zero-pole-gain data.
%
%   [Z,P,K] = ZPKDATA(SYS) returns the zeros, poles, and gain for
%   each I/O channel of the LTI model SYS.  The cell arrays Z,P 
%   and the matrix K have as many rows as outputs and as many columns 
%   as inputs, and their (I,J) entries specify the zeros, poles, 
%   and gain of the transfer function from input J to output I.  
%   SYS is first converted to zero-pole-gain format if necessary.
%
%   [Z,P,K,TS] = ZPKDATA(SYS)  also returns the sample time TS. 
%   Other properties of SYS can be accessed with GET or by direct 
%   structure-like referencing (e.g., SYS.Ts)
%
%   For a single SISO model SYS, the syntax
%       [Z,P,K] = ZPKDATA(SYS,'v')
%   returns the zeros Z and poles P as column vectors rather than
%   cell arrays.       
%
%   For arrays SYS of LTI models, Z,P,K are arrays of the same size as
%   SYS such that the ZPK representation of the m-th model SYS(:,:,m)
%   is Z(:,:,m), P(:,:,m), K(:,:,m).
%
%   See also ZPK, GET, TFDATA, SSDATA, LTIMODELS, LTIPROPS.

%   Author(s): S. Almy
%	 Copyright (c) 1986-98 by The MathWorks, Inc.
%	 $Revision: 1.1 $  $Date: 1998/08/26 16:42:30 $

error('ZPKDATA is not supported for FRD models.')
