Create Integral, Differential, timer and counter blocks from basic blocks in simulink
3 ビュー (過去 30 日間)
hoang luong 2022 年 10 月 21 日
回答済み: Benjamin Thompson 2022 年 10 月 21 日
How to create Integral, Differential, and counter blocks from basic blocks in simulink. for example, the differential blocker uses only + - x %...
回答 (1 件)
Benjamin Thompson 2022 年 10 月 21 日
You can use a Memory block, subtraction block, and gain block to approximate a differentiator, implementing the equation dx/dt = (x(2)-x(1)) / dt.
Counter block could be done with a memory block, add block, and constant 1 block.
Integral blocks would be more challenging since there are so many possible integration algorithms. Simulink provides blocks with a wide variety of options for all these things.
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!