function hello_world ( )

%*****************************************************************************80
%
%% hello_world() prints a traditional greeting.
%
%  Discussion:
%
%    Programming languages are traditionally introduced by the
%    phrase 'hello world'.  Here is a demo of some MATLAB capabilities.
%
%  Usage:
%
%    publish hello_world
%
%  Licensing:
%
%    Copyright 2014 The MathWorks, Inc.
%
%  Author:
%
%    Cleve Moler
%
%  Reference:
%
%    Cleve Moler,
%    Experiments with MATLAB
%    https://www.mathworks.com/moler
%
   help hello_world
   format ( 'loose' );

%% Array operations

   h = 'hello world'
   h'
   fliplr(h)
   flipud(h')
   diag(h)
   sort(h)

%% Characters

   x = real(h)
   char(x)
   char(max(h))
   char(x+3)
%
%  Plots
%
   H = upper(h)
   
   figure(1)
   plot(x,'*-')
   title(H)
   
   figure(2)
   bar(x)
   set(gca,'xticklabel',{H(:)})
   set(2,'position',get(1,'position')+[30 -30 0 0])
   
   figure(3)
   p = pie(x);
   for k = 1:11
      set(p(2*k),'string',H(k))
   end
   set(3,'position',get(1,'position')+[60 -60 0 0])

  return
end

