
% Load 'data.dat' and plot the requested information.

load data.dat
subplot(4, 1, 1); scatter(data(:, 1), data(:, 2));
subplot(4, 1, 2); hist(data(:, 1));
subplot(4, 1, 3); hist(data( abs(data(:, 1) + 1) < 0.05, 2));
subplot(4, 1, 4); hist(data( abs(data(:, 1) + 0) < 0.5, 2));