ADD_BLOCK 関数でモデルにブロックを追加できないのはなぜですか?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
myModel.mdl というモデルにブロックを追加したいのですが、以下のコマンドを実行するとエラーとなる場合があります。
open myModel.mdl
add_block('simulink/Sources/In1','myModel/myin1')
??? There is no block named 'simulink/Sources/In1'
Réponse acceptée
MathWorks Support Team
le 16 Fév 2012
Simulink ライブラリや、登録されたライブラリをロードする必要があります。このためには LOAD_SYSTEM 関数を使用します。
load_system('simulink')
open myModel.mdl
add_block('simulink/Sources/In1','myModel/myin1')
0 commentaires
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!