필터 지우기
필터 지우기

how to build a self-defined block in Simulink?

조회 수: 3 (최근 30일)
xw
xw 2022년 9월 19일
답변: Shreyansh Mehra 2022년 9월 22일
I am new to Simulink and i wanna build a self-defined block that is not contained in Simulink. Actually, i try to combine a brand-new battery model with electrical circuit, but Simulink don't contain such battery model. Should i write a .m file to build such new battery model or build it by some exist blocks in Simulink?

채택된 답변

Shreyansh Mehra
Shreyansh Mehra 2022년 9월 22일
Hello,
Simulink does allow users to create their own blocks. These blocks can be built using existing Simulink blocks, as well as by integrating MATLAB or C/C++ code.
The documentation linked below explains the different types of custom blocks in Simulink and might help decide which custom block suits your needs. Please have a look.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by