Programmatically get hierarchy depth of a model (subsystems and referenced models)
4 次查看(过去 30 天)
显示 更早的评论
I can get the hierarchy depth of a model using subsystem depth metric from the Verification and Validation toolbox, but this metric does not follow (i.e. count) the referenced models.
Depth traversal analysis stops when it reaches a referenced model or a library.
Depth and level is restarted with 0 for each of these components.
I do not understand why this metric has this behavior. Why doesn't it count the depth following the referenced models?
In order to achieve this (calculate hierarchy depth following both subsystem and referenced models) the most efficient way, can I create a custom metric extending the subsystem depth metric? In this case, I'll have to locate code for the subsystem depth metric; I don't know where to get this code. Or are there any existing programmatic API to get the metric I'm interested in?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Large-Scale Model Components 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!