lasso.m

版本 1.0.0.0 (1.6 KB) 作者: Thomas Rutten
Enables the selection/encircling of (clusters of) events in a scatter plot by hand.
5.4K 次下载
更新时间 2003/9/30

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

[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.

引用格式

Thomas Rutten (2024). lasso.m (https://www.mathworks.com/matlabcentral/fileexchange/3991-lasso-m), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Discrete Data Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

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