Combine two models in simbiology, where one of them is a species.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sudharsana Iyengar
el 10 de Feb. de 2021
Comentada: Sudharsana Iyengar
el 11 de Feb. de 2021
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.
0 comentarios
Respuesta aceptada
Florian Augustin
el 10 de Feb. de 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
Más respuestas (0)
Comunidades de usuarios
Más respuestas en SimBiology Community
Ver también
Categorías
Más información sobre Extend Modeling Environment en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!