Skip to content

Save configurations and use snapshots

In this document we will learn how to use the snapshot and reset methods in xolotl to quickly bookmark parameters and use them to help us explore models.

Saving snapshots

To quickly save and revert back to a certain set of numerical parameters in a model, you can use the snapshot and reset methods.

% first create a model to work with
x = xolotl.examples.neurons.BurstingNeuron;

% save a model's parameters as 'initial'

% do something else to the model
x.AB.NaV.gbar = 0;

V = x.integrate;

% save this as a different state to return to later
% return to the previously saved 'initial' state

See Also