Programmatically connect two subsystems

房东的猫 提交于 2019-12-02 11:37:10

Thanks to @am304 comments I manage to solve this issue.

Connection through physical ports must be made through RConn1 and LConn1 keynames, so the command add_line should be executed as follows:

add_line('model', 'cell1/RConn1', 'cell2/LConn1', 'autorouting', 'on')

Tested for:

  • Matlab Version 7.12.0.635 (R2011a)

Thanks!

Edit.- As @am304 says it's not documented so it can be changed. If more versions are checked, please post a comment and I will update the answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!