function DATA=heptl2mat(xls_root)
%
%
% COPYRIGHT (c) 2008
% 
% Applied Research Laboratories, The University of Texas at Austin
% (ARL:UT)
% All rights reserved.
% 
% This material may be reproduced by or for the U.S. Government
% only. This notice must appear in all copies of this file and its
% derivatives. Further distribution outside the U.S. Government is
% prohibited without the explicit written authorization from the
% Director of the Environmental Sciences Laboratory, ARL:UT.
% 
% THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
% EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE
% IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
% PURPOSE, OR NONINFRINGEMENT.
% 
% IN NO EVENT WILL ARL:UT BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING
% OUT OF THE USE OR INABILITY TO USE THIS SOFTWARE, EVEN IF ARL:UT HAS
% BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
[data,text] = xlsread([xls_root,'.xls']);
% OUTPUTS
% DATA			= Structure containing data, dimensions, scales, and labels;
% DATA.data		= Data matrix;
% DATA.dims		= Array containing data matrix dimensions;
% DATA.scales	= Cell array containing axis values;
% DATA.labels	= Cell array containing axis labels in (1:ndim) and data label in (ndim+1);
% status	= 0 for success, negative for failure;
DATA.ndim=2;
DATA.labels={'Range - km','Frequency - Hz'};
DATA.scales={data(:,5)', [25,50,100,200,400,800,1600,3200]};
DATA.dims=[length(DATA.scales{1}), length(DATA.scales{2})];
DATA.data=data(:,8:15); DATA.dlab='TL - dB';
DATA.title=xls_root;
%
str=['save ',xls_root,'_mtl DATA']; disp(str); eval(str);
view5(DATA);
