pwAddInstructions


 pwAddInstructions(filename)

 Add an instructions file to the currently selected models.

 

Description

 The instructions file is constructed as a Matlab function
 and contains for each stimulation a list of time points and
 driving functions for all required driving inputs. Additional
 driving inputs are ignored. Also a custom name can be specified
 which will be displayed in figure legends to distinguish all
 plotted stimulations.

 

Example

 function instructions = getInstructions()

 % pwGetDrivingFunction(uType, uTimes, uValues)

 instructions = [];

 instructions(end+1).t          = [0:10 15:5:60];
 instructions(end).stimuli.TGFb = pwGetDrivingFunction('steps', [-100 0], [0 1]);
 instructions(end).name         = 'TGF, continuous stimulation'; % custom name

 instructions(end+1).t          = [0:10 15:5:40];
 instructions(end).stimuli.TGFb = pwGetDrivingFunction('steps', [-100 0 10], [0 1 0]);
 instructions(end).name         = 'TGF, 10-min pulse';

 instructions(end+1).t          = [0 1 2 3 4 5 6 7 8 9 10 12 14 16 18 20 40 50 60 70 90];
 instructions(end).stimuli.TGFb = pwGetDrivingFunction('steps', [-100 0 20], [0 1 0.5]);
 instructions(end).name         = 'TGF, 20-min pulse';

See also

pwAddDynamicalParameters
pwAddObservations
pwAddStartValues
pwGetDrivingFunction
pwAddU
pwIDSO