Rubberband Line

版本 1.0.0.0 (630 字节) 作者: Sandra Preaux
Draws a rubber band line and returns the x y coordinates of the end points.
4.2K 次下载
更新时间 2002/3/26

无许可证

[p1,p2]=rbline(varargin)

Function to draw a rubberband line and return the start and end points. Usage: [p1,p2]=rbline; or [p1,p2]=rbline(h); where h is an axis handle. Click the mouse in the plot to define the start point. A rubberband line is drawn between the start point and the current point until the mouse is clicked again. The start point, p1, and the end point, p2, are returned. The figure UserData is not available while this function is running but is restored after it ends.

引用格式

Sandra Preaux (2024). Rubberband Line (https://www.mathworks.com/matlabcentral/fileexchange/1552-rubberband-line), MATLAB Central File Exchange. 检索时间: .

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

Community Treasure Hunt

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

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