The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Save a Sbiomodel
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 81
Registered: 6/14/12
Save a Sbiomodel
Posted: Dec 3, 2012 9:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I wrote following reactions and kinetic laws please see the below.

Dollar = sbiomodel('BofA');

react1 = addreaction(Dollar, 'A + B -> A-B');
kineticlaw1 = addkineticlaw(react1, 'MassAction');
addparameter(kineticlaw1, 'a1',10);
set(Dollar.Reactions(1).Reactants(1), 'InitialAmount', 0);
set(Dollar.Reactions(1).Reactants(2), 'InitialAmount', 3);
set(Dollar.Reactions(1).Products(1), 'InitialAmount', 0);
react2 = addreaction(Dollar, 'C + B <-> C-B');
kineticlaw2 = addkineticlaw(react2, 'MassAction');
set(kineticlaw2,'ParameterVariableNames',{'a2', 'a3'});
set(Dollar.Reactions(2).Reactants(1), 'InitialAmount', 0.01);
set(Dollar.Reactions(2).Reactants(2), 'InitialAmount', 0.0001);
set(Dollar.Reactions(2).Products(1), 'InitialAmount', 0);

I would like to save all these lines as a "sbiomdel" and when I call it as a model for example Dollar = sbiomodel ('BofA'), I ought not to write all these lines again.

Does anyone know a function that will allow me to save the model (these lines as a model)?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.