5.0

5.0 | 3 ratings Rate this file 40 downloads (last 30 days) File Size: 1.37 KB File ID: #3991

lasso.m

by Thomas Rutten

 

23 Sep 2003 (Updated 30 Sep 2003)

Code covered by the BSD License  

Enables the selection/encircling of (clusters of) events in a scatter plot by hand.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

Download Now | Watch this File

File Information
Description

[selx,sely,indexnr]=lasso(x,y);

Input: x,y - a set of points in 2 column vectors.
Output: selx,sely,indexnr - a set of selected points in 3 column vectors
  
Note: After the scatter plot is given, selection by mouse is started after any key press. This is done to be able to ZOOM or CHANGE AXES etc. in the representation before selection by mouse. Encircling is done by pressing subsequently the LEFT button mouse at the requested positions in a scatter plot. Closing the loop is done by a RIGHT button press.

MATLAB release MATLAB 6.5 (R13)
Other requirements none
Zip File Content  
Other Files lasso.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
23 Sep 2003 Juw Ma  
24 Sep 2003 c. s.

Useful and clever soft.

24 Sep 2003 c. s.

Dear Thomas: "lasso" is a useful software indeed. I think you could improve it with a little effort, giving the supplementary result POS where POS is the selected point POSITION index (row number) in the input [x,y] two columns matrix.
Regards
claudio

01 Jun 2005 Avigdor Namir  
Please login to add a comment or rating.
Updates
25 Sep 2003

On request, a third output column representing the index number (position in [x,y]) of selected events, is added.

30 Sep 2003

On request, a third output column representing the index number (position in [x,y]) of selected events, is added.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Thomas Rutten 22 Oct 2008 07:07:49
scatterplot Thomas Rutten 22 Oct 2008 07:07:49
data selection Thomas Rutten 22 Oct 2008 07:07:49
graphics Thomas Rutten 22 Oct 2008 07:07:49
mouse Thomas Rutten 22 Oct 2008 07:07:49
potw Shari Freedman 28 Sep 2009 10:41:12
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com