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 |
----------- -----------------------

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 4월 20일
편집: Fangjun Jiang 2020년 4월 20일

0 개 추천

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

질문:

2020년 4월 20일

편집:

2020년 4월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by