Proper way to define port dimensions in SIMULINK
33 views (last 30 days)
Show older comments
Luis Ruiz on 11 Apr 2019
Commented: Sadiq Shaik Abdul on 15 Apr 2021
What is the proper way to define port dimensions in SIMULINK?
I used to define them as:
Port dimensions (-1 for inherited):
But then I see that some people use:
The default in SIMULINK is vector, so when you connect an output of the form [4x1] with an input of 4, there is no error, but SIMULINK clearly shows a diference on the signal names, it recognizes one is [4x1] and the other 4. Is there any difference between the two methods, anything I should worry about?
Sadiq Shaik Abdul on 15 Apr 2021
Find more on Signal Attributes and Indexing 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!