I have two matrices
A = [1000 1000;... 1003 2640;... 2323 2638;... 2661 1096;... 1000 1000;... 1003 2640];B = [1003 2640;... 2323 2638;... 2661 1096;... 1000 1000;... 2323 2638;... 2661 1096];
I want to plot lines between points mentioned in A and B. I am plotting it by
data = [A, B];hold onfor i=1:6 plot(data(i, 1:2), data(i, 3:4));end
Lines are not connected in the figure which is attached herewith.
Please help.
Best Answer