How can i add simscape block programmatically

I konw how to add the basic simulink block programmatically. But when i use the same method, there is always something went wrong with the path name of the block source. How should i specifiy the name of the block source path properly?
add_block('simscape/Electrical/Specialized Power Systems/Fundamental Blocks/Mutual Inductance','Model_auto_generation_Mutual_inductance_considered')
Unbenannt.png

댓글 수: 2

Yifeng Tang
Yifeng Tang 2019년 11월 26일
If you open Simulink Library and hover the mouse over the block you want, the proper block path will show up.
Sam
Sam 2019년 11월 26일
Hi Yifeng,
Thanks for your answer. It worked.

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

답변 (1개)

Steve Miller
Steve Miller 2020년 8월 17일

0 개 추천

Looks like Yifeng's comment answered your question:
If you open Simulink Library and hover the mouse over the block you want, the proper block path will show up.
If you have a follow-up question, let us know.

카테고리

제품

릴리스

R2018b

질문:

Sam
2019년 8월 29일

답변:

2020년 8월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by