%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function to grab any data file %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function grab(File)
global dat corr gr;

if exist(File)==0
 load([File '.out']);
end

eval (['a =' File ';' ]);

x=input('Axis x is column ');
y=input('Axis y is column ');

plot(a(:,x),a(:,y));
CHG_AXIS(min(a(:,x)),max(a(:,x)));

ss=input('Label of x: ','s');
if isstr(ss) xlabel(ss); end;
ss=input('Label of y: ','s');
if isstr(ss) ylabel(ss); end;
ss=input('Title: ','s');
if isstr(ss) title(ss); end;

%%%%%%%%%%%%%
% PRINT OUT %
%%%%%%%%%%%%%
PRINT;

end; 
end
