% Partition the interval [a,b] into integerN subintervals. We do not
% require that a<b.
%
- % INPUTS:
+ % INPUT:
%
% * ``integerN`` - The number of subintervals.
%
%
% * ``b`` - The "right" endpoint of the interval to partition.
%
+ % OUTPUT:
%
- % OUTPUTS:
+ % * ``p`` - The resulting partition, as a column vector of length
+ % integerN+1.
%
- % * ``p`` - The resulting partition, as a vector of length integerN+1.
- %
- % * ``delta`` - The distance between x_i and x_{i+1} in the partition.
+ % * ``delta`` - The distance between x_i and x_{i+1} in the
+ % partition.
%
%
% towards `b`.
delta = (b - a)/integerN;
- p = [a : delta : b];
+ p = [a : delta : b]';
end