110 this =
this@models.BaseFirstOrderSystem(model);
112 this.
addParam(
" fibre_type ", 0,
" Range ", [0 1]);
113 this.
addParam(
" mean_current_factor ", 3,
" Range ", [0 9]);
118 ng = models.motoneuron.NoiseGenerator;
120 this.
Inputs[1] = @ng.getInput;
123 s = load(models.motoneuron.Model.FILE_UPPERLIMITPOLY);
128 this.
f= models.motoneuron.Dynamics(
this);
133 B = dscomponents.AffLinInputConv;
135 B.addMatrix(
" 1./(pi*(exp(log(100)*mu(1,:))*3.55e-05 + 77.5e-4).^2) ",...
138 B.addMatrix(
" mu(2,:)./(pi*(exp(log(100)*mu(1,:))*3.55e-05 + 77.5e-4).^2) ",...
143 this.
x0= dscomponents.ConstInitialValue(zeros(6,1));
178 setConfig@models.BaseFirstOrderSystem(
this, mu, inputidx);
195 h = pm.nextPlot(
" input ",
" Input currents (base + indep) ",
" time ",
" value ");
200 h = pm.nextPlot(
" eff_input ",
" Effective input current ",
" time ",
" value ");
201 B = this.
B.compose([],this.
mu);
206 h = pm.nextPlot(
" moto ",
" Motoneuron V_s ",
" time ",
" value ");
function pm = plot(double t,matrix< double > y, pm)
MotoModel: Motoneuron model.
The base class for any KerMor detailed model.
double dt
The desired time-stepsize for simulations.
static const .double C_m_slow
Membrane capacitance. Different values for different fibre types, due to different action potential p...
dscomponents.AInputConv B
The input conversion.
logical FibreTypeDepMaxMeanCurrent
Flag that determines if the mean current parameter is constrained depending on the fibre type paramet...
System(models.BaseFullModel model)
Call superclass constructor.
PlotManager: Small class that allows the same plots generated by some script to be either organized a...
inputidx
The current inputindex of the function .
noiseGen
The NoiseGenerator to obtain the inputs u(t)
function updateDimensions()
dscomponents.AInitialValue x0
Function handle to initial state evaluation.
mu
The current parameter for simulations, [] is none used.
Inputs
The system's possible input functions. A cell array of function handles, each taking a time argument ...
MotoSystem: The global dynamical system used within the MotoModel.
static const dm
Dimension of motoneuron part.
dscomponents.ACoreFun f
The core f function from the dynamical system.
function prepareSimulation(colvec< double > mu,integer inputidx)
Limits the mean input current to a maximum value depending on the fibre type, so that the frequency o...
function setConfig(colvec< double > mu,integer inputidx)
upperlimit_poly
The upper limit polynomial for maximum mean current dependent on the fibre type.
double MaxTimestep
The maximum timestep allowed for any ODE solvers.
function ModelParam p = addParam(char name, default, varargin)
Adds a parameter with the given values to the parameter collection of the current dynamical system...
Base class for all KerMor first-order dynamical systems.