How would I model this transfer function in simulink

Hi does anyone know how I would model this transfer function in simulink. Which block would I need to use. Thanks.

 Accepted Answer

If you have Control system toolbox, then you can use LTI system block: https://www.mathworks.com/help/control/ref/ltisystem.html to implement a transfer function with input delay in Simulink. Check the attached Simulink file (saved in R2020a) for example.

8 Comments

Thanks. Im not sure what I need to input in this LTI system block.
You need to use the input signal U(t), e.g., step signal, impulse signal, etc. as input to this block. The input signal can be anything, and you need to decide which signal it is. You must have an idea what signal you will input to the system.
Sorry Im a bit new to this. We were meant to find the PI and PID controller settings and develop a model in simulink to confirm the controller design gives an effective closed loop system to a step input. I made this model in simulink to confirm the PI controller. Im just unsure how to model the transfer function I mentioned in my previous comment instead of the one I have in this model (1/s^3+2s^2...).
Just replace the transfer function block in your model with LTI system block in my model. And the open the LTI system block and change the LTI system variable field to
tf(1,[1 2 4 1], 'InputDelay', 0.25)
This adds a delay of 0.25 to your transfer function.
Sorry, the transfer function in the model in my previous comment is incorrect, that was just used for a different question. Its this tf I need in the system block.
The equation expanded is 10exp(-0.25s)/(4.2s^2+4.7s+1)
so would that be tf(10,[4.2 4.7 1], 'InputDelay, 0.25)
Ah ok thank you for the help

Sign in to comment.

More Answers (0)

Products

Tags

Community Treasure Hunt

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

Start Hunting!