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!