% this is to plot a line between two points, in the format lineOM(A,B) % where A,B are 3-dim vectors % function lineOM(A,B); line( [A(1), B(1)], [A(2), B(2)], [A(3), B(3)]);