How can i implement the equation in SIMULINK MODEL??

3 次查看(过去 30 天)
Hai all,
I am trying to implement First order Filter whose output is out(k) = out(k-1)+((in(k)-(out(k-1))*gain .
I have input in(k) and gain I need to find out(k) for every 5 milli-seconds. I am new to MATLAB Simulink. please help me out to solve this.

回答(2 个)

Ameer Hamza
Ameer Hamza 2020-3-17
The attached model shows you how to implement such an equation in MATLAB. Also, press the "FixedTimeDiscrete" at the bottom right of the Simulink window to open solver properties to see how to set the time step to be 5 milliseconds.
  4 个评论
Dileepa B S
Dileepa B S 2020-3-17
Thank you for your support. i will try to analyze your model and then i will go with my equation implementation.

请先登录,再进行评论。


Siamak Lotfi
Siamak Lotfi 2021-9-10
thanks

社区

更多回答在  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by