Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: hazreg
See also:

Quantlet: steps4plot
Description: produces a matrix of points for plotting a left continuous step function.

Usage: (xyline)=steps4plot(xy, xymin, xmax)
Input:
xy n x 2 matrix, coordinates of the jump points sorted by the first column
xymin 1 x 2 matrix, coordinates of the starting point. Default is the first jump point. Its x coordinate is set to that of the first jump if specified as larger.
xmax scalar, x coordinate of the ending point Default is by adding 1% of the x range to the last jump point. Its x coordinate is set to that of the last first jump if specified as smaller. Y coordinate of the ending point is always that of the last jump point.
Output:
xyline 4*(n+1) x 2 matrix, the points to be connected into step function.




Author: L. Yang, 20000213 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006