Using a part of a signal simulink
1 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to use an integrator in simulink and I have a problem due to inf/nan errors. So overcome that I want to integrate only a part of the signal, is there a way to "trim" the signal or to limit it to specific times of integraion?
Thank you!
0 个评论
回答(5 个)
Sean de Wolski
2014-6-24
Perhaps a "Selector" block to select just the part you want (like an index).
0 个评论
A Jenkins
2014-6-24
How about just using a switch, and flipping the switch when your value exceeds the threshold?
In the case below, I am integrating only the parts of the sine wave that are less than 1:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!