function hex = matlab_real_to_hex_string ( x )

%*****************************************************************************80
%
%% MATLAB_REAL_TO_HEX_STRING converts a MATLAB real number to a hexadecimal string.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 August 2009
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the MATLAB real number.
%
%  Output:
%
%    string HEX, the hexadecimal string.
%
  hex = sprintf ( '%bx', x );

  return
end
