function crab_analysis

% Filename: crab_analysis.m
% Class:    function
% Author:   John Ramsey
% Date:     April 2002
% Version:  Matlab 6.0
% Usage:    crab_analysis
% Info:     reads Microvision .anl file to plot the data contained in the file

close all;

% load the data files
load crab_d1_1_430_V5.anl

% assign data to variables
f = crab_d1_1_430_V5(:,1);
x = crab_d1_1_430_V5(:,2);
xp = crab_d1_1_430_V5(:,3);
y = crab_d1_1_430_V5(:,4);
yp = crab_d1_1_430_V5(:,5);
z = crab_d1_1_430_V5(:,6);
zp = crab_d1_1_430_V5(:,7);


% plot the data
figure
subplot(3,1,1)
semilogy(f,x,'.-')
title('Magnitude Response')
xlabel('Frequency (Hz)'), ylabel('Displacement (m)')
subplot(3,1,2)
semilogy(f,y,'.-')
xlabel('Frequency (Hz)'), ylabel('Displacement (m)')
subplot(3,1,3)
semilogy(f,z,'.-')
xlabel('Frequency (Hz)'), ylabel('Displacement (m)')

figure
semilogy(f,y,'.-')
title('Y Magnitude Response')
xlabel('Frequency (Hz)'), ylabel('Displacement (m)')
axis([5.25e4,6e4,10^-7,10^-5])