I was wondering if there is a Matlab code that can calculate the following TF from the 2 equations below. Thank You
Asked
Active
Viewed 403 times
0
-
Have you tried anything? Yes Matlab can do transfer functions, there are many approaches that you can take. – Matt Mar 31 '17 at 18:06
-
Do you have access to the Control Systems Toolbox? It'll make computing this very easy. – rayryeng Mar 31 '17 at 18:17
-
@rayryeng Yes I do can access, Could you explain more? – Kia Rash Mar 31 '17 at 18:50
1 Answers
0
The Symbolic Math Toolbox can be used here:
syms alpha theta delta s
% we have to solve the system
sol= solve([(88.5*s+3.13)*alpha+(-88.5*s+2.06)*theta==-4.63*delta,...
-11.27*alpha+(4.75*s^2+0.321*s)*theta==-34.25*delta] ,[theta delta])
tfuncsym= sol.theta/sol.delta % the transfer function (sym object)
[n,d]= numden(tfuncsym);
% the transfer function (tf object)
tf_object= tf(fliplr(double(coeffs(n))),fliplr(double(coeffs(d))))
% the transfer function (zpk object)
% this is exactly what we need
zpk_object= zpk(tf_object)

AVK
- 2,130
- 3
- 15
- 25