How to convert symbolic expressions to transfer functions
280 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Qian Feng
el 31 de Oct. de 2016
Comentada: Walter Roberson
el 7 de Ag. de 2023
I am encountering the problem of converting a symbolic expression to become a transfer function. Specifically, the linear system I am dealing with contains a non-constant distributed delay term which requires performing an integration to obtain the corresponding transfer function. However, it seems that the integration operator int cannot be applied with tf variables directly.
On the other hand, if there is a way to convert symbolic expressions to transfer functions, then this problem can be easily handled in symbolic setting first.
Thanks a lot
3 comentarios
Star Strider
el 1 de Nov. de 2016
I suggested a similar approach yesterday. It’s apparently not a polynomial.
Respuesta aceptada
Walter Roberson
el 2 de Nov. de 2016
12 comentarios
Paul
el 27 de Feb. de 2021
Cool code. Siight mod to also handle the case when symExp is a constant.
syms s
symExp(s) = 5;
ExpFun = matlabFunction(symExp);
ExpFun = str2func(regexprep(func2str(ExpFun), '\.([/^\\*])', '$1'));
TF = tf(ExpFun(tf('s')));
TF
TF =
5
Static gain.
Más respuestas (2)
HyunSang Park
el 28 de Mayo de 2018
If you're just trying to find the peak value of the bode magnitude plot, might I suggest avoid using tf altogether? the peak value is when d(G(jw))/dw = 0. You can easily find the derivative with syms, and the plug in the w to the original tf.
0 comentarios
Murugan venkatesan
el 7 de Ag. de 2023
In order to analyze the bifurcation, the input impedance expression how to plot the bode graph..
1 comentario
Walter Roberson
el 7 de Ag. de 2023
I do not understand how people can use your answer to convert symbolic expressions to transfer functions? Could you show how your solution could be used for the example symExp = (s+2)/(s^2+5*s+9); ?
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!