|
-
February 5th, 2008, 12:39 PM
#1
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.
-
February 18th, 2008, 07:09 PM
#2
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);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|