MATLAB GUI figure open with the Toggle button problem [Explanation Given Below].

1 visualizzazione (ultimi 30 giorni)
Files: UI_Input.m, warning_123 and UI_Input.fig (For matlab GUI).
Input Figures for Display: On.PNG, Off.PNG, One.PNG and Two.PNG.
Requirement: From the UI Toggle button system can be turns 'on/off' and if system is 'on' and warning_input=1; It call the file warning_123.m from where it repeat One.PNG and Two.PNG image in loop. If loop is running and from UI if 'Button1' is pressed looping figure reflecting in the GUI axes1. (Instead of figure as defined in the warning_123).
Steps to reproduce
1. Download all files and images in a single folder.
2. Open UI_Input.m and run the file.
3. UI window opens and clicks on the Button1 (i.e toggle button).
4. Figure image gets open as warning_input1=1 hardcoded in the UI_Input.m file.
5. While 1 and 2 are repeating running, click on the UI Button1 again.
6. Now repeating 1 and 2 images comes in the GUI axes1.
While expected is is should close the figure and show Off.PNG in axes1 of the GUI.

Risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by