Computed parameter in Simbiology
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rajeev Kumar
le 22 Juil 2019
Modifié(e) : Florian Augustin
le 22 Juil 2019
I need a computed parameter in Simbiology model. So I defined a parameter param1=param2/param3 using the rule (repeated assignment). I defined param2=10 and param3 as 5. When I accessed the parameter value using sbioselect(m1, 'Type','Parameters') I get param1=1. How to know the what value of param1 is going into simulations. Is there any other way to define the computed parameter in Simbiology ? How to know what value is being usedin the simulation for computed parameters.
0 commentaires
Réponse acceptée
Florian Augustin
le 22 Juil 2019
Modifié(e) : Florian Augustin
le 22 Juil 2019
Hi Rajeev,
You could call the function getequations on your model, getequations(m1). This gives you a printout of the values. If you simulate the model, then you could also log param1 to see its value changing over time; this may be of interest, if param2 and param3 are not constant. If param2 and param3 are just constants, then you could also use an initial assignment rule.
-Florian
0 commentaires
Plus de réponses (0)
Communautés
Plus de réponses dans SimBiology Community
Voir également
Catégories
En savoir plus sur Extend Modeling Environment dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!