CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    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.

  2. #2
    Join Date
    Dec 2001
    Location
    Greece, Athens
    Posts
    1,015

    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);
    Theodore
    Personal Web Page (some audio segmentation tools): www.di.uoa.gr/~tyiannak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured