Specify initial conditions
This document will describe how to specify initial conditions of a model. We will assume you already have a model set up. To quickly set up a model that we can work with, you can use:
Initial conditions are specified by default¶
In general, components in xolotl are expected to specify their own default initial conditions. Thus, if you don't do anything, these default values are chosen.
Specify initial conditions by hand¶
You can set any property or initial condition of any component in your xolotl object manually. If you can see it, then you can modify it. For example, this is how you set the initial voltage your compartment:
x.CompName.V = -60; % mV
In the model we created here, there are four channels that inactivate. We can set the inactivation variable in all four channels using: