simulinkモデルの中にgotoブロックとfromブロックがたくさんあります。それらをすべて信号線としてつなぎたいです。
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
私が作成したsimulinkモデルの中にはgotoブロックとfromブロックがたくさんあります。今、そのブロックをすべて削除し、同じ名前のgotoブロックとfromブロック同士をすべて信号線に置き換える作業をしています。そのような作業を自動で行う方法はありますでしょうか?
0 commentaires
Réponse acceptée
Etsuo Maeda
le 21 Oct 2019
回答がついていないようなので・・
を参考にスクリプトm-fileで操作していけばよいかと思います。
find_system でブロックを探して、get_paramでパラメータを抽出して一致判定をして、delete_blockでブロックを消して、add_lineで繋がっているべきブロックとブロックラインをつなげる というようなワークフローで出来そうです。
HTH
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur プログラムによるモデル編集 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!