UIFigure Keyboard control update
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Life is Wonderful
am 5 Dez. 2019
Kommentiert: Life is Wonderful
am 11 Feb. 2020
I have a input for my uifigure for plotting the data
PlotCntrl = input('+: cont, -: back, a=: auto, q: quit -->', 's')
I need help . My Code is available in the below link
Question : How to apply PlotCntrl = input('+: cont, -: back, a=: auto, q: quit -->', 's') in a App design ?
3 Kommentare
Akzeptierte Antwort
Adam Danz
am 6 Dez. 2019
Bearbeitet: Adam Danz
am 6 Dez. 2019
"I am looking for an approach on how to provide the input control for the uifigure"
Idea 1: add buttons to your App
One approach would be to simply add 4 buttons to your App.
- Continue
- Back
- Auto
- Quit
Each button could use the same callback function that changes x (or whatever other variables they should affect) depending on which button was pressed.
Idea 2: use uiconfirm()
uiconfirm(f,message,title,Name,Value) is a dialog box that allows the user to select a button option which is returned as an output. Try this.
app.UIFigure = uifigure(); % This is your app, you don't need this line.
selection = uiconfirm(app.UIFigure,'Select something','MyApp',...
'Options',{'Continue','Back','Auto','Quit'}, ...
'DefaultOption','Continue', ...
'CancelOption','Quit');
7 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Find more on Develop uifigure-Based Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!