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

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

 Risposta accettata

kei hin
kei hin il 28 Feb 2024
Modificato: kei hin il 28 Feb 2024

0 voti

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

2 Commenti

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

Accedi per commentare.

Più risposte (0)

Categorie

Prodotti

Release

R2023a

Community Treasure Hunt

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

Start Hunting!