Build a variale discrete transfer function

14 次查看(过去 30 天)
Hello there,
I'm want to build a observer control model in Simulink. My Plant in continuous time is described by the transfer function
G(s)=1/(Ts+1)
To realise the observer model I Need the inverse of the function
G(s)^-1=Ts+1
Because it's an improper function I Need to add a filter to it. I want to use a bandpass filter described by
H(s)=(s*2*D*w)/(s^2+s*2*D*w+w^2)
So the complete transfer function i have is now
H(s)G(s)^-1=(s*T+1)(s*2*D*w)/(s^2+s*2*D*w+w^2)
I want the values T, w and D to be variable. So I can't use the Transfer function block. I want to build these functions with blocks. So I Need to convert these functions into discrete time and then build it with blocks. But I can't figure it out :(
Probably you can help me

回答(1 个)

Stephan
Stephan 2018-9-5
Hi,
have a look to the realp function. It allows to build generalized state space models genss with tuneable parameters, which then can be used for further processing. You find some examples if you follow this topic in the documentation.
Interesting links also may be:
Best regards
Stephan

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by