필터 지우기
필터 지우기

Running two different models in one simulink code with subsystems

조회 수: 2 (최근 30일)
Aishwarya Rao
Aishwarya Rao 2022년 11월 27일
답변: Sameer Pujari 2022년 11월 30일
Hi All,
I want to run two different Ordinary differential equation at the same time in Simulink. For that I am using Atomic subsystems. From my knowledge each subsystem runs as a separate function. But I am not sure whether running two different models will have any interaction in the outputs. Is it the right way? If not, can you please suggest me the alternative? Also, which one of the following way is suitable for reducing file size - using subsystems or creating a new separate code for each ode?

답변 (1개)

Sameer Pujari
Sameer Pujari 2022년 11월 30일
Hi Aishwarya
As per my understanding of your question, As you are using an atomic subsystem and there are no dependencies between 2 subsystems, Both subsystems will work independently of each other.
Size wise using subsystems will consume less size as configuration settings will only take the size of one. Although execution time may slightly increase I think that may not cause an issue

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by