Can I reference a library subsystem inside the library itself?

I have a model and an associated library for subsystems that are used in multiple places. I have Block A which I have created which addresses a general case of some opperatasion, and needs the inputs to be processed a certain way depending on the use case.
I have a certasadin use case which is overwhelmingly common which I would like to create Block B to handle. This would be the custom logic for the case, and being fed into Block A. Is this possible to accomplish in a single library file? I want them to be linked, so that Block B will also be updated if Block A is changed.
Something like:
Block A Block B
----------- -----------------------
| Stuff | | Stuff -> Block A |
----------- -----------------------

 采纳的回答

Yes. In the same library file, create A first, then drag and drop A to create B. Save file. Next, modify A, save file. See the A inside B changes.

1 个评论

Thank you, works as described.
It was my previous understanding that this would have just created a duplicate.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Subsystems 的更多信息

产品

版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by