PIECEWISE_EVAL: evaluates a piecewise function of x
usage: y = PIECEWISE_EVAL(x,breakpoints,funs)
arguments (input)
x - vector or array of points to evaluate though the function
breakpoints - list of n breakpoints, -inf and +inf are implicitly
LINEINTRGAL Line Integral in a 2D Vector Field.
LINEINTRGAL(X,Y,U,V,C) computes the line integral along the lines given in cell array C.
X and Y define the coordinates of a rectangular grid over which
U and V are defined. X and Y must be monotonic and 2D plaid as
% produced by MESHGRID. X, Y, U, and V must all be the same size.