Code covered by the BSD License
-
icdtool(varargin)
ICDTOOL - Individual Channel Design utility for 2x2 MIMO systems
-
arrowh(x,y,clr,ArSize,Where)
ARROWH Draws a solid 2D arrow head in current plot.
-
gershband(a,b,c,d,e)
GERSHBAND - Finds the Gershorin Bands of a nxn LTI MIMO SYS model
-
m_circles
M_CIRCLES - Superimposes the M circles of magnitude -2dB to 20 dB.
-
nyqmimo(a,b,c,d,wi,wf,step)
NYQMIMO - Find the general nyquist plot of a LTI nxn MIMO and SISO models
-
rga(a,b,c,d,w)
-
smform(a,b,c,d)
SMFORM - Finds the Smith-McMillan form of a LTI MIMO SYS model along with
-
ss2sym(a,b,c,d)
SS2SYM - State Space to Symbolic Transfer Function conversion.
-
sym2tf(g)
SYM2TF - Symbolic Transfer Function to Numerical Transfer Function
-
tf2sym(G)
TF2SYM - Numerical Transfer Function to Symbolic Transfer Function
-
View all files
from
MIMO Toolbox
by Oskar Vivero
Multivarialbe control toolbox
|
| tf2sym(G)
|
function g = tf2sym(G)
%TF2SYM - Numerical Transfer Function to Symbolic Transfer Function
%conversion.
%
% Syntax: g = tf2sym(G)
%
% Inputs:
% G - Numerical Transfer Function
%
% Outputs:
% g - Symbolic Transfer Function
%
% Example:
% g11=tf([1 2],[1 2 1]);
% g12=tf([1 -1],[1 5 6]);
% g21=tf([1 -1],[1 3 2]);
% g22=tf([1 2],[1 1]);
% G=[g11 g12; g21 g22];
% g=tf2sym(G);
% pretty(g)
%
% See also: sym2tf, ss2sym
%
% Author: Oskar Vivero Osornio
% email: oskar.vivero@gmail.com
% Created: February 2006;
% Last revision: 25-March-2006;
% May be distributed freely for non-commercial use,
% but please leave the above info unchanged, for
% credit and feedback purposes
%------------- BEGIN CODE --------------
p=sym('p');
[n,m]=size(G);
g=zeros(n,m);
g=sym(g);
for i=1:n
for j=1:m
[num,den]=tfdata(G(i,j),'v');
l=length(den);
order=l;
for k=1:l
A(order,1)=p^(k-1);
order=order-1;
end
n=num*A;
d=den*A;
g(i,j)=n/d;
clear A;
end
end
g=simple(g);
%------------- END OF CODE --------------
|
|
Contact us at files@mathworks.com