Multiple Cursors

버전 1.0.0.0 (4.71 KB) 작성자: Olivier
Cursor feature for MATLAB® plots
다운로드 수: 2.4K
업데이트 날짜: 2007/6/21

라이선스 보기

MYCURSORS creates as many cursors as you want on an axes.
Cursors can be tricky to implement and handle. This function will help you to simply add multiple cursors on an axes.

EXAMPLE:

Take a look at the example cursor_demo() to see how you can implement cursors using MYCURSORS.

USE:

FH = MYCURSORS(VARARGIN) add cursor on an axes.

VARARGIN can contain 0, 1 or 2 elements:
1) First input is the handle of the axes on which you want to create the
cursor.
Default value is the current axes (GCA)
2) Second input is the color of the cursor.
Default value is red ('r' or [1 0 0])

FH is a structure containing function handles that enable you to manipulate
the cursor. FH structure looks like:
FH.add(XPOS) : Adds a cursor on the same axes at the position x = XPOS.
XPOS is facultative. Default value is the middle of the
axes.
FH.off(NUM) : Removes the NUMth cursor created
If NUM is a character string then the function removes only
the last cursor.
FH.val(NUM) : Returns a vector containing the positions of the NUMth
cursor.
If you omit NUM then the function returns the position of
all cursors.
FH.hdl() : Returns a matrix containing the handles of the cursors in
the first column and the handles of the associated labels
in the second column.

인용 양식

Olivier (2024). Multiple Cursors (https://www.mathworks.com/matlabcentral/fileexchange/15156-multiple-cursors), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Bug corrected when there was only one cursor the values couldn't be retrieved