Adjust window level of image using mouse button

You can adjust the window level using mouse

You are now following this Submission

You can adjust the window level by mouse
1 clicking and holding the RIGHT mouse button and moving: adjust current image

2 mid-button or shift+left button: adjust all images in current figure.
Example:
imagesc;
enableWL;

Cite As

Yi Sui (2026). Adjust window level of image using mouse button (https://se.mathworks.com/matlabcentral/fileexchange/38491-adjust-window-level-of-image-using-mouse-button), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

rewrite the code

1.0.0.0