connecting simulink with matlab
1 次查看(过去 30 天)
显示 更早的评论
Hello
I want to know how to run a simulink model in the middle of my code in the matlab, so if I have a matlab code and in the middle of the code I want to write a command that runs the simulink model and then continue with the normal code.
assume the simulink model name is "mymodel"
0 个评论
回答(1 个)
Fangjun Jiang
2020-1-27
results=sim('mymodel')
8 个评论
Fangjun Jiang
2020-1-27
You need to learn some basics of Simulink. It's a simulation program. Those 51values correspond to the 51 time instances of the simulation. At time=0s, the value is 10. At time=0.2s, the value is 10, ..., etc.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!