how can I replace a block?

I created a library (. Lib). I want to replace a block in my model with that of my library. How can we replace by a script? thank you

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2013 年 5 月 6 日

1 投票

Please see replace_block.

2 件のコメント

ACHRAF RAYANI
ACHRAF RAYANI 2013 年 5 月 7 日
I need to replace a block that is contained in my own library not in simulink library
thnx
Kaustubha Govind
Kaustubha Govind 2013 年 5 月 7 日
Achraf: Does it not work if you make sure that your library is loaded (use load_system) and use the full path to the new block with replace_block? Could you please provide the exact syntax that you're using?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

製品

タグ

質問済み:

2013 年 5 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by