function y = seqa(a, b, n)
%SEQA   Additive sequence.
%   Y = SEQA(A,B,N) produces a row vector comprising N equally
%   spaced numbers starting at A and finishing at B.
%   If N is omitted, then 10 points are generated.
%
%   Helper function used by CHEBVAND and VAND.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.4 $  $Date: 1997/11/21 23:30:01 $

if nargin == 2, n = 10; end

if n <= 1
   y = a;
   return
end
y = [a+(0:n-2)*(b-a)/(n-1), b];
