%
%  This file processes the data from the first trial
%
function data = process_data_1dof;
%
%  enter the data as 
%       frequency (in Hz) input amplitude (in cm/degrees/radians)  output amplitude (in cm/degrees/radians); 
%
%  such as 
%
%  measured = [1.00 1.50 1.740;
%              2.00 1.50 2300;
%              2.50 0.50 1100];
%

  measured = [];
%
%  Be sure the rows are sorted by frequency
%
   measured = sortrows(measured,1);
%
%  get the magnitude of the transfer function
%
  H = measured(:,3)./measured(:,2);
  f = measured(:,1); 
  data = [f H];
%
  return;