How can I model the following function, f(t) in simulink?
1 次查看(过去 30 天)
显示 更早的评论
f(t) = '8t-3' for 0 =< t =< 3; = 't^3 -6' for 3 < t =< 7 and = 337 for t > 7
0 个评论
回答(1 个)
Sebastian Castro
2017-7-12
I'd use a Clock block to generate the time signal, and then stick that signal through a MATLAB Function block that implements your piecewise function with if-statements.
... if you want something more "Simulinky", you can instead do this with a bunch of comparison and Switch blocks from the Logical Operators library.
- Sebastian
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!