function a = r8vec_indicator ( n ) %*****************************************************************************80 % %% R8VEC_INDICATOR sets an R8VEC to the indicator vector. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 05 September 2004 % % Author: % % John Burkardt % % Parameters: % % Input, integer N, the number of entries in the vector. % % Output, real A(N), the vector with entries (1, 2, ..., N ). % a = ( 1 : n ); return end