running m-file from Simulink
显示 更早的评论
Hi,
I have a m-file with the initial conditions for a simulink model. Currently I manually run the file before I run the simulation.
My questions are as follow:
1. Is there a way to have simulink automatically run the m-file when I, either open the model, or start the simulation?
2. Would it be possible to run the m-file with the initial conditions during the simulation?
Further Information for question 2:
The m-file with the initial conditions contains various parameters that depend on how the user decides to run the simulation (manually or using autonomy) (it's basically a flight sim). I would like to be able to change flight modes within the simulation by simply re-running the m-file.
Thank you very much in advance for your time.
采纳的回答
更多回答(1 个)
manu kasturi
2019-6-6
0 个投票
I have a similar kind of problem.
In my case, I want user to select one m script from a list.
Could you please help me in this regard?
类别
在 帮助中心 和 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!