%% Find Roots of Discontinuous Spline
% Create and plot a discontinuous piecewise linear spline.

 spline = spmak([0 0 1 1 2 2],[-1 1 -1 1]);
 figure
 fnplt(spline);

%
% Find the roots of the spline. The roots include the jump through zero at x = 1.

x = fnzeros(spline)

%
% Copyright 2018 The MathWorks, Inc.