simulink model property callback
Ältere Kommentare anzeigen
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 ?
Antworten (1)
Fangjun Jiang
am 9 Mai 2019
0 Stimmen
All the texts specified there are treated as code. So you could specify one line of code, or multiple lines with multiple functions.
2 Kommentare
ashwani gupta
am 10 Mai 2019
Fangjun Jiang
am 10 Mai 2019
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.
Kategorien
Mehr zu Model, Block, and Port Callbacks finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!