112 outputscaling =
true;
114 singlepeakmode =
false;
137 this.
SaveTag= sprintf(
" motorunit_shorten_sp%d_dynic%d ",singlepeakmode,dynamic_ic);
141 this.
Name= sprintf(
" Motor unit model: Single peak mode: %d, Dynamic Initial Conditions: %d ",singlepeakmode,dynamic_ic);
142 this.
System= models.motorunit.SHSystem(
this);
146 s = solvers.MLWrapper(@ode15s);
149 s.odeopts.OutputFcn= @sys.singlePeakModeOutputFcn;
154 s = sampling.RandomSampler;
155 s.Domain= models.motoneuron.ParamDomain;
175 h = pm.nextPlot(
" moto_sarco_link_factor ",
" Factor for motoneuro to sarcomere link ",
" Moto V_s ",
" Factor ");
177 fx = f.MSLink_MaxFactor*ones(1,length(x));
178 dynfac = x < f.MSLink_MaxFactorSignal;
179 fx(dynfac) = f.getLinkFactor(x(dynfac));
190 title(
" Force scaling curve for different fibre types ");
191 xlabel(
" Fibre type parameter ");
192 ylabel(
" Peak force for single excitation ");
201 h = pm.nextPlot(
" moto ",
" Motoneuron V_s ",
" time ",
" value ");
203 h = pm.nextPlot(
" sarco ",
" Linked sarcomere: V_s ",
" time ",
" V_s ");
205 h = pm.nextPlot(
" sarco ",sprintf(
" Linked sarcomere: A_2\nMu=[%s] ",num2str(this.
System.
mu" )), "time
" , "A_2^t);
219 h = pm.nextPlot(
" sarco ",
" Linked sarcomere: V_s ",
" time ",
" V_s ");
221 h = pm.nextPlot(
" sarco ",sprintf(
" Linked sarcomere: A_2\nMu=[%s] ",num2str(this.
System.
mu" )), "time
" , "A_2^t);
233 #if 0 //mtoc++: 'get.UseNoise'
235 value = ~this.System.noiseGen.DisableNoise;
242 #if 0 //mtoc++: 'set.UseNoise'
244 this.
System.noiseGen.DisableNoise= ~value;
253 m = models.motorunit.Shorten;
263 if ~isa(
this,
" models.motorunit.Shorten ")
265 this = models.motorunit.Shorten;
266 this =
loadobj@models.BaseFullModel(
this, sobj);
268 this =
loadobj@models.BaseFullModel(
this);
char Name
The name of the Model.
Shorten(dynamic_ic,logical singlepeakmode, outputscaling)
Creates a new motor unit model.
function useFileTrajectoryData(logical overwrite)
Sets the TrajectoryData and TrajectoryFxiData classes to filesystem based versions.
The base class for any KerMor detailed model.
double dt
The desired time-stepsize for simulations.
integer TrainingInputs
The indices of inputs to use for training data generation. Uses the DefaultInput if not set (and Defa...
sampling.BaseSampler Sampler
The sampling strategy the Model uses.
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
function pm = plotState(double t,colvec< double > x, pm)
Shorten: Model for a muscle motor unit composed of motoneuron and a sarcomere.
logical SingleTwitchOutputForceScaling
Flag to determine if the output force (e.g. calcium concentration) should be re-scaled so that the fo...
PlotManager: Small class that allows the same plots generated by some script to be either organized a...
function pm = plot(double t,matrix< double > y, pm)
static function this = loadobj()
logical LeaveOpen
Flag indicating if the plots should be left open once the PlotManager is deleted (as variable) ...
solvers.BaseSolver ODESolver
The solver to use for the ODE. Must be an instance of any solvers.BaseSolver subclass.
mu
The current parameter for simulations, [] is none used.
integer DefaultInput
The default input to use if none is given.
function pm = plotMotoSacroLinkFactorCurve()
static function res = test_Shorten()
double T
The final timestep up to which to simulate.
data.ModelData Data
The full model's data container. Defaults to an empty container.
ModelData(varargin)
Creates a new container for large full model data.
logical DynamicInitialConditions
Set this flag to true (in constructor) if you want parameter-dependent initial conditions that have b...
colvec< double > DefaultMu
The default parameter value if none is given.
logical EnableTrajectoryCaching
Flag that enables caching of computed trajectories in a simulation cache stored in KerMor's TempDirec...
dscomponents.ACoreFun f
The core f function from the dynamical system.
function plotOutputForceScaling(colvec< double > x)
logical SinglePeakMode
Flag that determines if this system is to be run so that only ever one peak/signal will be issued...
char SaveTag
A custom tag that can be used as a prefix to files for corresponding model identification.