function plotfvm(x,u)
%PLOTFVM   Plot piecewise constant function
%
%   PLOTFVM(X,U) plots piecewise constant function with values U versus 
%   versus positions given in X. Here, X is an M+1 vector containing the
%   point on the left and right sides of the cell, the vector U has length
%   M and contains the values in each interval. That is, the function has
%   value U(i) between X(i) and X(i+1) for i=1,2,...,M.

x = repmat(x(:)',2,1);x = x(2:end-1);
u = repmat(u(:)',2,1);u = u(:);
plot(x,u)

