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

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

 Akzeptierte Antwort

kei hin
kei hin am 28 Feb. 2024
Bearbeitet: kei hin am 28 Feb. 2024

0 Stimmen

line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', 'Type', 'line', 'Selected', 'on');
or
get_param(gcb,'LineHandles')

2 Kommentare

Shangjun Xie
Shangjun Xie am 1 Mär. 2024
Thanks for sharing the information with me
Xiaoning.Wang
Xiaoning.Wang am 7 Jul. 2024
这个只是选中了线,并没有解释如何自动布局

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 代码生成 finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023a

Community Treasure Hunt

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

Start Hunting!