Borrar filtros
Borrar filtros

function block with changeable input

2 visualizaciones (últimos 30 días)
haluk zorluoglu
haluk zorluoglu el 9 de Abr. de 2021
Respondida: stozaki el 9 de Abr. de 2021
Hi everyone,
I want to create a simulink block with changaeble number of inputs? Is this possible? How can I do this?
Thank you in advance

Respuestas (1)

stozaki
stozaki el 9 de Abr. de 2021
Hi haluk zorluoglu,
We cannot increase the number of ports in the function block. However, we can vectorize the input and enter it.
In other words, input signals of multiple elements are input together in a Mux block. Please check using the attached model.
However, Function block is not supported in the new MATLAB version. It is recommended to use the MATLAB Function block.
It is also specified in the release notes.
Regards,
stozaki

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by