pwAdaptInstructions


 instructionsOut = pwAdaptInstructions(model, instructionsIn)

 Adapts a custom instruction struct (see pwAddInstructions)
 to a struct that can be used in conjunction with the given model.

 

Arguments for pwAdaptInstructions

 Let the given instructions be a struct array of length n and
 1 <= i <= n:

 instructionsIn(i):
   .t
   .name
   .stimuli.uID = pwGetDrivingFunction(...)
                  Which leads to the fields:
                  .uTimes
                  .uValues
                  .u2Values
                  .uType
                  .referenceXID

 The returned instruction struct has n stimuli,
 each comprising d driving functions.
 The quantity d is defined by the number of driving functions of the
 given model. Let 1 <= i <= n and 1 <= j <= d:

 instructionsOut:
  .stimuli(i).t
  .stimuli(i).name
  .stimuli(i).drivingFunctions(j).uTimes
                                 .uValues
                                 .u2Values
                                 .uType
                                 .referenceXID


See also

pwAddInstructions