Question 1: First, a little background. In SimBiology, parameters can be associated either with a model (sometimes called "model-scoped parameters") or with a kinetic law of a reaction ("reaction-scoped parameters"). A model-scoped parameter is visible throughout the model and can be used in any reaction, event, or rule. A reaction-scoped parameter can only be used in the rate of the reaction that it's associated with.
get(modelObj1,'Parameters'), or equivalently modelObj1.Parameters, only lists model-scoped parameters. You can get the parameters associated with a particular reaction with code like modelObj1.Reactions(1).KineticLaw.Parameters, or the equivalent
reactionObjs = get(modelObj1, 'Reactions')
kineticLawObj = get(reactionObjs(1), 'KineticLaw')
parameterObjs = get(kineticLawObj, 'Parameters')
If you'd like a simple way to get all the parameters used in a model, you can use use sbioselect function as follows:
allParameterObjs = sbioselect(modelObj, 'Type', 'parameter')
Question 2: I'm a developer on the SimBiology team, and I would need to know more details to assist you with diagnosing a crash. For example, what version of MATLAB are you using? What operating system? Can you provide the crash log? Can you provide reproduction steps? I will try to contact you to obtain this information.
Best Answer