ADD_BLOCK 関数でモデルにブロッ​クを追加できないのは​なぜですか?

12 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 16 de Feb. de 2012
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
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')

Más respuestas (0)

Categorías

Más información sobre プログラムによるモデル編集 en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!