zpk DisplayFormat as time constant, how to access the actual Gain, Zeros and Poles
50 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gerard Nagle
el 29 de Abr. de 2023
Comentada: Gerard Nagle
el 30 de Abr. de 2023
Hi there.
looking at transforming a transfer funtion into time constant format from polynominal format.
I evenutally came across the option in zpk, to have 'DisplayFormat','timeconstant' which outputs the results as expected.
So the transfer funtion is which is then .
However, when I look at the z,p and k in the values for z, p and k are from , the roots of the num and den.
Anywhy to access the time constants directly, or just have to have work with the roots?
Thanks in advance
Gerard
G = tf([3 6],[1 4 3])
G1 = zpk(G)
[z,p,k] = zpkdata(G);
G1 = zpk(z,p,k,'DisplayFormat','timeconstant')
2 comentarios
Paul
el 29 de Abr. de 2023
Are complex poles/zeros a consideration? If so, what should the time constant be for those?
Respuesta aceptada
Star Strider
el 29 de Abr. de 2023
Perhaps I do not understand your question, however in the documentation for the 'time constant' option, the coefficient of s is the time constant, τ. So the time constants are , , and 1.
Given that relation, you can get them directly (albeit with a bit of processing) —
G = tf([3 6],[1 4 3]);
G1 = zpk(G);
[z,p,k] = zpkdata(G);
G1 = zpk(z,p,k,'DisplayFormat','timeconstant')
z_tau = -1./cell2mat(G1.z)
p_tau = -1./cell2mat(G1.p)
.
2 comentarios
Star Strider
el 30 de Abr. de 2023
As always, my pleasure!
‘Is there a way to suggest enhancements for functions to MATHWORKS?’
Más respuestas (0)
Ver también
Categorías
Más información sobre Filter Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!