clear;
%base='map_result6';
%base='../../exp_IMAEAfm/check_map/map_s1'
base='../../exp_IEAfm/cal/map_result_cal'


[fname, time, sec, ang, hght rt num] = textread(base,'%s %s %f %f %f %d %d');

figure(1);
subplot(2,2,1);
plot(sec, ang, 'rs','MarkerSize',4);
grid on;
title('位置検出');
xlabel('V(X)');
ylabel('atan(A - A0, B - B0)');

subplot(2,2,2);
plot(sec, hght, 'rs','MarkerSize',4);
grid on;
title('波高');
xlabel('V(X)');
ylabel('A+B');



subplot(2,2,3);
plot(sec, rt, 'k+','MarkerSize',4);
hold on
plot(sec, num, 'rs','MarkerSize',4);
hold off
grid on;
title('位置検出');
xlabel('V(X)');
ylabel('cps');

sec1 = sec(1:6);
ang1 = ang(1:6);
sec2 = sec(190:202);
ang2 = ang(190:202);
sec3 = sec(209:218);
ang3 = ang(209:218);

subplot(2,2,4);
plot(sec1, ang1, 'k+','MarkerSize',4);
hold on
plot(sec2-360, ang2, 'rs','MarkerSize',4);
plot(sec3, ang3, 'bo','MarkerSize',4);
hold off
grid on;
title('位置検出');
xlabel('V(X)');
ylabel('atan(A - A0, B - B0)');
