Code covered by the BSD License  

Highlights from
Matrix Polynomial Fraction

Matrix Polynomial Fraction

by

 

01 Feb 2010 (Updated )

Advances for state feedback multivariable using canonical form.

i=isrowred(M)
function i=isrowred(M)
%ISROWRED Determine is the MPF is row reduced.
%
% Syntax:    i=isrowred(M)
%  
% Inputs:
%    M -Polynomial matrix  
%
% Outputs:
%    i - i=1 the Matrix polynomial is row reduced   
%
% Other m-files required: 
% Subfunctions: 
%                       none
%
% Author: Franklin Pineda Torres
% email: fe.pineda92@uniandes.edu.co
% Created: June 2008; 
% Last revision: 01-Jan-2009;
%
%See-also :
%             
%Copyright 2008-2009
%
% May be distributed freely for non-commercial use, 
% but please leave the above info unchanged, for
% credit and feedback purposes

%------------- BEGIN CODE --------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cl=class(M);
switch cl
    case 'sym'       
        [M]=sym2cell(M);    
end
M=M';
v=findv(M,'cf');
M=cell2sym(M);
d=det(M);
p=sym2poly(d);
if length(p)-1==sum(v)
    i=1;
else
    i=0;
end
return






Contact us