Guest User

Untitled

a guest
Aug 5th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. matlab selecting regions in matlab plot
  2. hax = axes( ... , 'ButtonDownFcn', @OnClickAxes);
  3.  
  4. function OnClickAxes( hax, evt )
  5.  
  6. point1 = get(hax,'CurrentPoint'); % hax is handle to axes
  7. rbbox;
  8. point2 = get(hax,'CurrentPoint'); % hax is handle to axes
  9.  
  10. end
Advertisement
Add Comment
Please, Sign In to add comment