ADD_BLOCK 関数でモデルにブロックを追加できないのはなぜですか?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
myModel.mdl というモデルにブロックを追加したいのですが、以下のコマンドを実行するとエラーとなる場合があります。
open myModel.mdl
add_block('simulink/Sources/In1','myModel/myin1')
??? There is no block named 'simulink/Sources/In1'
Respuesta aceptada
MathWorks Support Team
el 16 de Feb. de 2012
Simulink ライブラリや、登録されたライブラリをロードする必要があります。このためには LOAD_SYSTEM 関数を使用します。
load_system('simulink')
open myModel.mdl
add_block('simulink/Sources/In1','myModel/myin1')
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre プログラムによるモデル編集 en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!