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

8 views (last 30 days)
Shangjun Xie
Shangjun Xie on 25 Feb 2024
Commented: Xiaoning.Wang on 7 Jul 2024
在simulink中,选中线后,可以使用“自动布线”,令凌乱的线重新布局。
我希望找到响应的编程接口。
只是对某一条线进行自动布局,而不是整个模型!

Accepted Answer

kei hin
kei hin on 28 Feb 2024
Edited: kei hin on 28 Feb 2024
line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', 'Type', 'line', 'Selected', 'on');
or
get_param(gcb,'LineHandles')
  2 Comments
Shangjun Xie
Shangjun Xie on 1 Mar 2024
Thanks for sharing the information with me
Xiaoning.Wang
Xiaoning.Wang on 7 Jul 2024
这个只是选中了线,并没有解释如何自动布局

Sign in to comment.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!