function hello_fun ( n )

%*****************************************************************************80
%
%% HELLO_FUN uses MATLAB's PARFOR command to print "Hello, world!".
%
%  Discussion:
%
%    This trivial program may help when first trying out MATLAB's
%    parallel features.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 December 2023
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of times to say hello.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'hello_parfor():\n' );
  fprintf ( 1, '  Print lots of hellos.\n' );
  fprintf ( 1, '\n' );

  parfor i = 1 : n
    fprintf ( 1, '  %d: Hello, world!\n', i );
  end

  return
end


