Transfer Function in Simulink

4 views (last 30 days)
Vinoth on 15 Dec 2011
Hi all,
i have a Transfer function =(s+1)/(a*s^2 + b*s +1)
I want to change the coefficients 'a' and 'b' during the runtime in can i do this??

Accepted Answer

Paulo Silva
Paulo Silva on 15 Dec 2011
Use those variables (a and b) in the simulation, define them in the workspace with default values before the simulation starts
Simulink reads the values and uses them but it doesn't read them again unless you stop and run the simulation again or you execute the command:
set_param('sys', 'SimulationCommand', 'update')
set_param('sys', 'SimulationCommand', 'update')

More Answers (0)

Community Treasure Hunt

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

Start Hunting!