function x = line_adj_null_right ( m, n )

%*****************************************************************************80
%
%% line_adj_null_right() returns a right null vector of the LINE_ADJ matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 November 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the order of the matrix.
%
%  Output:
%
%    real X(N,1), a null vector
%
  if ( mod ( n, 2 ) == 0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'LINE_ADJ_NULL_RIGHT - Fatal error!\n' );
    fprintf ( 1, '  For N even, there is no null vector.\n' );
    error ( 'LINE_ADJ_NULL_RIGHT - Fatal error!' );
  end

  x = zeros ( n, 1 );

  x(1:4:n,1) =  1.0;
  x(3:4:n,1) = -1.0;

  return
end
