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 Exchange에서 Modeling에 대해 자세히 알아보기

제품

태그

질문:

2013년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by