% This example creates a simple 2D (X-Y) figure in matlab.
% Assume that the input file is input.txt, and contains data in two columns: X, Y, for each point to plot.

% Load data from file.
data = dlmread('input.txt');

% Separate vectors from data matrix.
x = data(:, 1);
y = data(:, 2);

% Create figure.
figure();

% Plot the graph in blue.
plot(x, y, 'b');

% Set axes text.
xlabel('x (m)');
ylabel('t (s)');

% Set title text.
title('Time-Space plot for NMO');