tf and damp, all need the numerical coefficients of the transfer function
Mostra commenti meno recenti
But I want the symbolic operation, how can I do ?
8 Commenti
li hu
il 13 Mag 2023
Walter Roberson
il 13 Mag 2023
There is nothing in the Control System Toolbox that accepts symbolic expressions, unfortunately. And the Symbolic Toolbox provides little in the way of tools for symbolic process control.
Two key symbolic toolbox functions are laplace and ilaplace . The "transfer function" form with ratio of two s polynomials, is the laplace transform of the control function.
I am not familiar with the calculations involved for damp .. broadly speaking you would be looking to solve() the denominator of the laplace expression of the function in order to find the poles. numden to split numerator and denominator. I do not know at the moment what you would do to find the time constant.
Hi @li hu
The transfer function is merely a fraction if you want to deal with symbols. What exactly do you want to solve in MATLAB?
syms s b a1 a2
G = b/(a1*s + a2)
li hu
il 15 Mag 2023
Walter Roberson
il 15 Mag 2023
Modificato: Walter Roberson
il 15 Mag 2023
syms s b a1 a2
G = b/(a1*s + a2)
[N, D] = numden(G)
poles = solve(D)
rate_constant = -1./poles
I would need to research the calculation of the damping ratio. Also, the time constant shown here might possibly only be valid for linear denominators.
li hu
il 15 Mag 2023
Walter Roberson
il 15 Mag 2023
poles = solve(D, 'maxdegree', 4);
Typically this will create a quite long output. The exact symbolic solutions for the roots of degree 4 are complicated. When any of the coefficients are symbolic variables then there is little hope that you will get nice outputs. If all of the coefficients are numbers then from time to time you will get nice numeric solutions... but pretty much only for the case that someone deliberately created an easy form
Risposte (1)
Sam Chak
il 21 Mag 2023
0 voti
Hi @li hu
Finding the poles (roots of the denominator) is like solving polynomial equations.
However, if it is 5th-degree and higher polynomial, then it cannot be solved algebraically in terms of a finite number of additions, subtractions, multiplications, divisions, and root extractions.
Categorie
Scopri di più su Dynamic System Models in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
