File Exchange

image thumbnail

Interactive Section Selection on a 2D Plot with Matlab Implementation

version 1.1.0.0 (338 KB) by Hristo Zhivomirov
Interactive selection of a data section from a 2-D plot using vertical mark lines.

2 Downloads

Updated 28 Dec 2017

View License

The present code is a Matlab function that provides interactive selection of a data section from a 2-D plot using vertical mark lines. The function is very suitable for GUI developments. The user can position each of the two vertical mark lines in an interactive mode, using the mouse. After that, one must press any keyboard key in order to receive their abscissa values. The output of the function is a 1-by-2 vector with the section start and end values, in abscissa data units.
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.

Comments and Ratings (0)

Updates

1.1.0.0

A new version of the code has been uploaded.

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux