How can i implement the equation in SIMULINK MODEL??

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.

Antworten (2)

Ameer Hamza
Ameer Hamza am 17 Mär. 2020

0 Stimmen

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 Kommentare

Thank you for your responce, i am unable to open the model you sent. Because i am using matalb 2019a version. Will you please export your model to previous version(to the version which is i am using) and send me back, i will be grateful to you.
Please check the attached file exported for R2019a.
Thank you for your support. i will try to analyze your model and then i will go with my equation implementation.
Glad to be of help.

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  Power Electronics Control

Kategorien

Mehr zu General Applications finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 17 Mär. 2020

Beantwortet:

am 10 Sep. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by