How to programmatically create argin and argout ports in simulink function
Show older comments
Hello.
I want to create argin and argout inside simulink function using command like add_block.
For example, I want to make u1, u2, y1, y2 using code as shown in the screenshot below.
Please check.
Thank you.

Accepted Answer
More Answers (1)
pierre muratory
on 22 Jun 2023
0 votes
It doesn't look to work on R2022B :
add_block('untitled/Simulink Function/u','untitled/Simulink Function/u1');
There is no block named 'untitled/Simulink Function/u'
could you please tell us how to do it ?
thanks
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!