pwSetCurrentDrivingFunction
pwSetCurrentDrivingFunction(df, iCouple, jStimulus, kDrivingFunction, combined)
Sets the driving function of couple i, stimulus j, and driving function k to df.
k can also be the ID of a driving input player.
Default values: i=1, j=1, k=1, combined=true
If combined==true (default), the currently combined couples are used.
Else, the currently active instructions (sampling + driving input) of model i
in the repository list is used.
df should have the following fields:
df.ID
.uType % 1 = steps, 2 = linear, 5 = spline (requiring derivatives saved in u2Values)
.uTimes
.uValues
.u2Values
Description
Attention: This function accesses directly an internal variable.
Example
Linear interpolation of several data points for input Epo:
df = [];
df.ID = 'Epo';
df.uType = 2;
df.uTimes = [-1 0 10 20 30 40];
df.uValues = [0 0 1 2 4 8];
df.u2Values = [];
pwSetCurrentDrivingFunction(df, 1, 2, 'Epo');
This sets the Epo driving input of the second stimulus of
the first combined model-data-couple.
See also