Interactive Section Selection on a 2D Plot with Matlab

版本 1.2.0.0 (326.8 KB) 作者: Hristo Zhivomirov
Interactive selection of a data section from a 2-D plot using vertical mark lines.
280.0 次下载
更新时间 2020/8/3

查看许可证

The present code is a Matlab function that provides interactive selection of a data section from a 2D plot using vertical mark lines. The function is very suitable for GUI developments or interactive selection and saving 2D data plot sections. The user can position each of the two vertical mark lines in an interactive mode, using the mouse – double click of the left mouse button place the first line, double click of the right button place the second line. After that, one must press “Enter” keyboard key in order to save the selected 2D plot (between the two lines) as a .mat data file – abscissa values are placed in the first matrix column and the ordinate values – in the second one. The interactive mode can be stopped using the “End” keyboard kay.

An example is given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.

引用格式

Hristo Zhivomirov (2024). Interactive Section Selection on a 2D Plot with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/59547-interactive-section-selection-on-a-2d-plot-with-matlab), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

A new version of the code has been uploaded.

1.1.0.0

A new version of the code has been uploaded.

1.0.0.0