User input that can remain on screen and be adjusted?
Afficher commentaires plus anciens
I have only just in the last month or so learnt how to use MATLAB. I'm currently trying to make a basic GUI for a series of race car dynamics calculations.
I'm using questdlg and inside one case, prompt. The values entered in this prompt once OK is pressed are run through a series of equations, a graph appears, and the results are returned in a uiwait msgbox - once OK is pressed another graph is displayed (and the results go)
My question - how can I have functionality like this, but allow the user input box to remain on screen, and the results, and graphs, so one variable could be changed, and the effect on the results easily seen?
Currently I have to finish running the code (close graphs and msgbox) and re-run, re-typing all values, adjusting the one I want to change.
Do I need to use GUIDE? I avoided it initially as I knew a basic GUI (as it is now) with prompts/questdlg/msgbox would take only a few lines of code.
Please see my M-file - https://dl.dropboxusercontent.com/u/18683367/Code.m
Thanks in advance - Matt.
4 commentaires
Kirby Fears
le 24 Nov 2015
This thread has the answer for a very similar question:
Hope this helps.
Geoff Hayes
le 24 Nov 2015
Matt - I think that creating a GUI with GUIDE is the best way to proceed. You seem to have about 15-16 attributes that the user is allowed to modify/edit and so using edit text boxes for each may be the way to go (especially if you allow the user to change one attribute and then want the graph to update soon after).
Matt
le 24 Nov 2015
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!