Record input data into matrix
and plot the result in separate window
