linewidthdlg.m
This function creates a modal dialog box that displays a line and allows the user to adjust its width with a slider control. When the user is finished and hits the ok button, the function returns the width selected.
Suggested use: Add a menu to your GUI that allows you to change the linewidths of all lines within a figure (see example included). Then, if the need arises to use your GUI during a presentation, you can quickly thicken all the lines displayed and make them easier for your audience to see.
This function has been tested in Matlab 5.3 and Matlab 6.1.
Cite As
Jordan Rosenthal (2026). linewidthdlg.m (https://www.mathworks.com/matlabcentral/fileexchange/1179-linewidthdlg-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
