Combine two models in simbiology, where one of them is a species.

2 Ansichten (letzte 30 Tage)
I am having 2 species reacting to give me a reaction product.
Can I replace one of the species with another model. Let the two models be A and B.
Is there a way i can use copyobj and import a different model(B here) as a species with in A, which may further react within A and proceed.
Thank you.

Akzeptierte Antwort

Florian Augustin
Florian Augustin am 10 Feb. 2021
Hi Sudharsana,
It sounds like the copy-paste tool in the graphical user interface for SimBiology could help in your case. To open the SimBiology app, type simbiology in the Matlab command line and hit enter. In the app you can add the two models A and B. Then you can rubber-band select all model components in model B that should be copied into the destination model A. To copy the selection click on Copy in the right-click context menu.
Then switch to model A in the BROWSER panel on the left, under the Project tab.
Paste the copied model components from model B into model A by right-clicking on the diagram and selecting Paste.
These screenshots are taken from the latest version of SimBiology, Matlab R2020b. There you can customize the copy behavior ("Copy Options...", the third entry in the context menu for copying model components). This can be helpful if you want to copy more complex models, for example when the two models contain species with the same name, or also for copying rules, events, or observables.
After having copied model B into model A, you can connect the two models by adding a rule, or a reaction, between the corresponding species/parameters.
I hope this helps.
Best,
Florian

Weitere Antworten (0)

Communitys

Weitere Antworten in  SimBiology Community

Kategorien

Mehr zu Extend Modeling Environment finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by