Gauge for GUIDE
Updated 10 Jun 2020
Gauge is available for UIfigure and Simulink but is not available for a figure (maybe i am wrong). A lot of people still works on GUIDE thus the solution.
User can set following things in Gauge
1. Gauge Fill Color
2. Gauge Background Color
3. Needle Color
4. units of gauge (interpreter is tex)
5. Label of Gauge
6. Gauge Limits (min max)
There are three files
1. The_Gauge (Function which Draws Gauge)
2. Gauge_callback (button press callback)
3. Example_Code_Guage_Use_main (Example code on how to use The_Gauge)
When you call the function, it will ask you to draw where you want to draw the Gauge.
Gauge will always be with aspect ratio of 1:2. i.e. width will be twice the height
Mehmed Saad (2023). Gauge for GUIDE (https://www.mathworks.com/matlabcentral/fileexchange/76772-gauge-for-guide), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.