function f = linspacecircular(x1,x2,n) % function f = linspacecircular(x1,x2,n) % % , are numbers % is the number of desired points % % return a vector of equally spaced values starting at % and stopping just before ( is treated as equivalent % to ). % % example: % isequal(linspacecircular(0,8,4),[0 2 4 6]) dif = (x2-x1)/n; f = linspace(x1,x2-dif,n);