% % This file processes the data from the first trial % function data = process_data_3carts; % % enter the data as % frequency input (in volts) output amplitude (in counts) for X1 X2 X3; % % such as % % measured = [1.00 1.50 1740 1500 2500; % 2.00 1.50 2300 1500 2800; % 2.50 0.50 1100 0 1000]; % measured = [ ]; % % be sure the row are sorted by frequency % measured = sortrows(measured,1); % % get the magnitude of the transfer function % H1 = measured(:,3)./measured(:,2); H2 = measured(:,4)./measured(:,2); H3 = measured(:,5)./measured(:,2); f = measured(:,1); data = [f H1 H2 H3]; % return;