simulink model property callback
2 次查看(过去 30 天)
显示 更早的评论
Hi, i have a doubt in the intialization of a simulink model. Like can i define more than one function to File - Model properties - Model properties -call back-InitFcn ?
If yes is there any specific way or it is simple as calling one function ?
0 个评论
回答(1 个)
Fangjun Jiang
2019-5-9
All the texts specified there are treated as code. So you could specify one line of code, or multiple lines with multiple functions.
2 个评论
Fangjun Jiang
2019-5-10
What do you mean by "import two functions"? You can certainly run two functions like "fun1;fun2;" in sequence. You can even put an if-else statement in the InitFcn callback section to run functions conditionally.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!