Change number of connection ports of a mask depending on user input?

13 次查看(过去 30 天)
I have the following problem in Simulink: I want to change the number of port connections depending on the user input. If the user for example writes the following Parameters into the User Input,
then the block should look like this:
I want to use the block inside a library, so i think it should be written in the callback of the mask, but up to now i haven't found a solution for this.

回答(1 个)

Govind KM
Govind KM 2024-8-22
Hi Bernhard,
As I understand, you want to change the number of input/output port connections based on user input.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by