How do I input a tranfer function in simulink with just a numerator?

35 visualizaciones (últimos 30 días)
Ali A
Ali A el 4 de Nov. de 2021
Comentada: Andy Bartlett el 9 de Nov. de 2021
For example "3s", I thought about using a gain block but couldnt insert the s. I've also tried putting a 1 on the denominator in a transfer function block but also get an error.

Respuestas (2)

Andy Bartlett
Andy Bartlett el 4 de Nov. de 2021
Editada: Andy Bartlett el 8 de Nov. de 2021
The Laplace operator s represents a derivative and its inverse (1/s) represents an integrator.
In concept, you could model 3*s as a derivative block and a gain block in series. However, noise due to numeric roundoffs and such would likely give very poor behavior in practice. For this reason, realizations of continuous-time systems are usually based on integrators and not on differentiators. See slide 14 here as an example of an integrator based realization.
If you look at the problem you are trying to solve from a higher level, I suspect you will find that you don't need to model 3*s directly and you can use an integrator based realization.
You could also play a practical "trick" of creating a filtered derivative by adding a sufficiently fast pole, i.e. model
s/(s-fastPoleLocations)
  2 comentarios
Paul
Paul el 8 de Nov. de 2021
Shouldn't that be:
-s / (s/fastPoleLocation - 1) % assume fastPoleLocation < 0
Andy Bartlett
Andy Bartlett el 9 de Nov. de 2021
Good point, the key idea is to provide nearly identical frequency response for "low" frequencies
s = j*w
0 <= w < 0.1*abs(fastPoleLocation) % Frequencies one decade or more below the pole
The formula I showed reduces the magnitude response at low frequencies by 1/abs(fastPoleLocation)
With your correction, the goal is satisfied of approximately equality
3*j*w == 3*j*w /( j*w/(-fastPoleLocation) + 1) for 0 <= w < 0.1*abs(fastPoleLocation)

Iniciar sesión para comentar.


Paul
Paul el 4 de Nov. de 2021
Similar question discussed here

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by