How to get transfer function from circuit in simulink without exact values
Afficher commentaires plus anciens
Hello,
i would like to ask if there is any way to obtain transfer function just by drawing circuit in simulink? I want TF expressed like this:
(video from matlab team) -> https://youtu.be/EXzTgGPdfzs?feature=shared&t=261
So i can make script for plotting root locus for various loads at the output.
thanks
Réponses (1)
Pratyush
le 12 Avr 2024
1 vote
Hi ahmed,
To obtain a transfer function from a Simulink model, follow these summarized steps:
- Design your system in Simulink accurately using the appropriate blocks.
- Linearize your system using MATLAB functions such as linearize('YourSimulinkModel') to get a linear model approximation.
- Convert the linear model to a transfer function using MATLAB's tf function, like [num,den] = tfdata(sys,'v'), where sys is your linearized system.
- Create a script to plot the root locus for various parameters using the obtained transfer function coefficients (num and den) with commands like sys_tf = tf(num,den); rlocus(sys_tf).
Hope this helps.
1 commentaire
ahmed
le 12 Avr 2024
Catégories
En savoir plus sur Simulink Control Design dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!