I was able to do what you wanted using a simple plot command.
A = [6,3];
B = [2,4];
plot(A,B);
axis([0,10,0,5]);
質問
I googled it...
And all i found was how to plot a line that crosses two points, what i need is Segment (Line that crosses two points A(x1, y1) and B(x2, y2) but limited with those two points) if somebody can give me a function that does that, i will thankful.
解決
I was able to do what you wanted using a simple plot command.
A = [6,3];
B = [2,4];
plot(A,B);
axis([0,10,0,5]);