Dynamically generate a simulink block

조회 수: 2 (최근 30일)
Simone Bergadano
Simone Bergadano 2024년 4월 30일
답변: Paul 2024년 4월 30일
I was wondering if it was possible to dynamically generate a Simulink block (subsystem with mask) based on the parameters entered: for example being able to decide how many inputs/outputs it has by inserting the number as a parameter (as happens for the mux and demux blocks) but also by changing how the subsystem is made internally.

답변 (1개)

Paul
Paul 2024년 4월 30일
This doc page Dynamic Masked Subsystem is probably what you're looking for. Not sure if the number of inputs or outputs can be changed dynamically this way, but definitely can change things inside the subsystem.

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by