-
request for matlab
hi
I want to know how to automatic accept end line (start, end) of the line from graphic and assign the program x and y coordinate. how could i use which function. I means first load the image and then draw line on the image. how to accept the automatic x y coordinate in the matlab to assign the program.
I means x = (which function key from line on the image) and y too.
-
Re: request for matlab
I am note sure I completely understand your question. Do you simply want to draw a line in a matlab figure? If this is so, you can use the ginput() command. For example:
Code:
hold on;
[x,y] = ginput(2);
line(x,y);