function block with changeable input
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
stozaki
2021년 4월 9일
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!