function Analyze( filename )

fid = fopen( filename, 'r' );
A=fscanf( fid, '%s %s %s %s\n', 4);
i=0;
while( ~feof(fid) )
    i=i+1;
    B(:,i)=fscanf( fid, '%f %f %f %f\n', 4);
end

t=B(1,:);
for i=1:(length(t)-1)
    x(i)=B(2,i);
    y(i)=B(3,i);
    z(i)=B(4,i);
end
time=t(1:length(t)-1);

figure
subplot(3,1,1)
plot(time,x)
title('X')
subplot(3,1,2)
plot(time,y)
title('Y')
subplot(3,1,3)
plot(time,z)
title('Z')

save workspace
