Code covered by the BSD License  

Highlights from
Increment/Decrement uicontrol

Be the first to rate this file! 14 Downloads (last 30 days) File Size: 4.16 KB File ID: #42221
image thumbnail

Increment/Decrement uicontrol

by Chad Gilbert

 

14 Jun 2013 (Updated 18 Jul 2013)

A custom uicontrol for making increment/decrement button pairs.

| Watch this File

File Information
Description

A pair of up/down pushbuttons can be linked to the "string" and "value" attributes of another uicontrol object, allowing the buttons to increment or decrement their values.

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
gui
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
19 Jul 2013 Chad Gilbert

Thanks, Jan. For those who are interested in fuller functionality, Yair's "uicomponent" submission is particularly good <http://www.mathworks.com/matlabcentral/fileexchange/14583-uicomponent-expands-uicontrol-to-all-java-classes>.

19 Jul 2013 Jan Simon

This is also called "spinner". See also:
http://www.mathworks.com/matlabcentral/fileexchange/26970-spinnerdemo
http://www.mathworks.com/matlabcentral/fileexchange/26656-uispinner
http://www.mathworks.com/matlabcentral/fileexchange/14583-uicomponent-expands-uicontrol-to-all-java-classes

Updates
18 Jul 2013

Completed missing help string, added options for placing the buttons to the right of the edit box, and added an example.

Contact us