function [a,b,c,d] = sec2ss(h)
%SEC2SS  Convert single-section latcmax object to state-space.

%   Author(s): R. Losada
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2000/06/13 21:22:23 $ 

k = seccoefficients(h);

% Form a minphase object 
f = latcma(k);

% Find the state-space of the min-phase, we use a and b only
[a,b] = sec2ss(f);

% Make sure k is a row
k = k(:).';

c = [k(end)'.*k(1:end-1) 1];

d = k(end)';


