在matlab调用什​么函数可以让Simu​link模型中的Li​ne自动调整?

在simulink中,选中线后,可以使用“自动布线”,令凌乱的线重新布局。
我希望找到响应的编程接口。
只是对某一条线进行自动布局,而不是整个模型!

 采纳的回答

kei hin
kei hin 2024-2-28
编辑:kei hin 2024-2-28
line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', 'Type', 'line', 'Selected', 'on');
or
get_param(gcb,'LineHandles')

2 个评论

Thanks for sharing the information with me
这个只是选中了线,并没有解释如何自动布局

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 编程式模型编辑 的更多信息

产品

版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!