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!