How do I set an initial value for an input in a MATLAB Function Block in Simulink?
18 次查看(过去 30 天)
显示 更早的评论
This is the function description.
function Y = fcn(U)
Y=U*2;
I want to set intial value for U at the start of simulation. I am unable to set initial value in the function block data editor.
Below is the simulink model:
0 个评论
采纳的回答
Fangjun Jiang
2020-2-21
The initial value of "U" is determined by the 1/z block. Set the initial value there.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!