How can I use a time dependent function as input source for my Simulink Model?
显示 更早的评论
That is the defined function in my Matlab Function Block: The Result should be a curve the the Time t should be a interval e.g. from 0 to 10 How can I enter the time?
function i8_20 = fcn(t) %#codegen
ipeak=10000;
i8_20 = (ipeak/0.616)*sin(0.12*10^6*t)*exp.(-(t/(24.1e-06)));
采纳的回答
更多回答(1 个)
Robin Henne
2020-1-2
0 个投票
you could try it with a triggered subsystem, which is triggered with a pulse generator with a period time of 100us
类别
在 帮助中心 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!