gstep 247
gstepSyntax
gPdm = gstep (ytime,timespec,valspec, {skipChks})
Parameter Li st
Inputs: ytime output time vector (seconds).
timespec times for specified step data (optional)
valspec value for specified step data (optional)
Keywords: skipChks Boolean specifying that syntax checking is to be skipped.
Outputs: gPdm pdm containingthe step values as a function of time.
Description
This function creates a PDM over the domain: ytime. At ytime = timespec(i) the
output steps to value: valspec(i) and maintains that value until the next specified step
or the end of the domain.
Example
time = [0:100]
steptimes = [5,25,30,65,90]
stepvalues = [-1,2,1,-1.5,1.5]
out = gstep(time,steptimes,stepvalues)
gph1 = ctrlplot(out);
gph1 = plot(gph1,{title="gstep example"})?