How can I use different inport dimensions on different referenced model instances?
조회 수: 1 (최근 30일)
이전 댓글 표시
My problem is easily understandable with a simple example. Consider that the use of referenced models, as well as input / output selections are project musts.
Imagine that I have a referenced model that performs the following task:
- Takes a N length vector as input
- Finds that maximum value on that vector
- Returns that maximum value
I want to introduce two instances of that referenced model in my parent model, in such a way that the first instance analyses a 2-dimensional vector and the second instance a 17 dimensional one.
I have tried unsuccessfully the followings:
- To set the inport of the referenced model as -1 (inherit), although I know that port dimensions are not propagated between referenced model and parent model boundaries
- To use variable size signals. The problem is that the maximum vector size has to be the same at parent model signal and referenced model inport
Any idea on how to achieve this?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Model References에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!