echo off;
close all; % figure を全部閉じる

load data/result.dat;

%%%%%%%%%%%%
% 時間応答 %
%%%%%%%%%%%%

% z
figure(1);
plot(result(:,1), result(:,2));
xlabel('Time [sec]');
ylabel('z');
print -djpeg90 -r70 data/z_time.jpg;

% y
figure(2);
plot(result(:,1), result(:,3));
xlabel('Time [sec]');
ylabel('y');
print -djpeg90 -r70 data/y_time.jpg;

% u
figure(3);
plot(result(:,1), result(:,4));
xlabel('Time [sec]');
ylabel('u');
print -djpeg90 -r70 data/u_time.jpg;

% w
figure(4);
plot(result(:,1), result(:,5));
xlabel('Time [sec]');
ylabel('w');
print -djpeg90 -r70 data/w_time.jpg;
