How to refresh selected model block via command line? (not the Ctrl+K function)
3 次查看(过去 30 天)
显示 更早的评论
We can right click a Model Reference block and select Subsystem & Model Reference -> Refresh Selected Model Block.
I am wondering how to implement this action via command line.
Can you help me? Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/733944/image.jpeg)
0 个评论
回答(1 个)
stozaki
2021-9-10
Hello,
You can update the model block by using the following function.
Simulink.ModelReference.refresh
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Component-Based Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!