Program: MKSTEPFUNCTION
mkstepfunction.........generalized step function evaluation
call: y=mkstepfunction(x,jumpx,jumpy);
y=mkstepfunction(x,jumpx,jumpy,mode);
x: free variable of the step function
jumpx: positions of the steps on the x-axis
jumpy: function values at JUMPX
mode: string that determines how to interpret the jumps:
'absolute': JUMPY defines function values
'gradient': JUMPY defines change of function
default: 'absolute'
result: y: function value at X
Thsi routine implements a generalized step function which is defined by a
list of step positions and function values at these positions. The
function remains constant as long as x is smaller than the x of the next
step.
For x smaller than the first value in JUMPX, the function is zero.
For x larger than the last jump, the function remains at the last level
defined in JUMPX.
Martin Knapmeyer, 2005
Read M-File Source Code
eof.