필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Using the Simulink class to programatically populate Simulink models.

조회 수: 1 (최근 30일)
Matt Thomas
Matt Thomas 2017년 8월 25일
마감: MATLAB Answer Bot 2021년 8월 20일
I am programatically creating Simulink models. In the past I have used the add_block() to add Simulink blocks. I noticed that I can also add blocks using the Simulink class. For example, I can add a constant block by "Simulink.Constant( name ). This works for most blocks with a few exceptions such as look up tables and subsystems. How do I add a subsystem using the Simulink dot notation?

답변 (1개)

Abhisek Roy
Abhisek Roy 2017년 8월 28일
Hi Matt,
Adding blocks via Simulink class i.e. Simulink.(name of the block) is not a supported workflow. As a result, not all of the blocks are available to be added like the mentioned syntax. For adding blocks to Simulink models programmatically, please use the 'add_block' command.
Regards,
Abhisek

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by