I want to replace a simscape block with another one. This doens't work:
replace_block('vdp','Constant Area Pneumatic Orifice','fl_lib/Pneumatic/Pneumatic Elements/Variable Area Pneumatic Orifice','noprompt')
What am I doing wrong? Thanks in Advanced

 채택된 답변

Sebastian Castro
Sebastian Castro 2015년 7월 16일

0 개 추천

Just tried the same command as you and it works fine on my end... although the block name stays the same. Is that maybe the case for you too?
- Sebastian

댓글 수: 1

replace_block('vdp',sprintf('Constant Area\nPneumatic Orifice'),'fl_lib/Pneumatic/Pneumatic Elements/Variable Area Pneumatic Orifice','noprompt')
I found out, the \n was missing. This way it works!
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기

질문:

2015년 7월 16일

댓글:

2015년 7월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by