how to programmatically make a GUI
Mostrar comentarios más antiguos
hi guys
I really need everyone's help on this. I've been trying to make a gui so that i can take the data from my m file and plot it so that i can grid, pan, zoom, scroll, select different categories to show on the plot and etc . I've tried watching every video and reading up on how to make it. I just am not able to make it correctly. I need to finish this code as soon as possible so i would appreciate if you got back to me with any suggestions that you may have.
Thank you so much
15 comentarios
Kevin Chng
el 31 de Oct. de 2018
Read AppDesigner or Guide.
In Your MATLAB Command window, type
>>appdesigner
or
>>guide
Stephen23
el 31 de Oct. de 2018
"how to programmatically make a GUI"
Writing a GUI involves lots of reading documentation:
- want a button: go and read the uicontrol help.
- want to plot data: go and read the plot / surf / ... help.
- etc.
I would recommend avoiding GUIDE, just write it yourself using nested functions.
ALDO
el 31 de Oct. de 2018
Walter Roberson
el 31 de Oct. de 2018
None of us has time to write a textbook on all the ways to write a gui. You need to ask specific questions. Post code and show the error message.
Stephen23
el 31 de Oct. de 2018
"so i thought I would put everything in one big function and introduce(load) the variables in the beginning but I cant seem to be able to do it correctly!"
Here is a simple GUI that accepts input arguments, processes them, and then returns (optionally when the GUI is closed, using waitfor):
ALDO
el 31 de Oct. de 2018
ALDO
el 31 de Oct. de 2018
Editada: Walter Roberson
el 31 de Oct. de 2018
Walter Roberson
el 31 de Oct. de 2018
Please show the exact load() line that you are using, the one that is giving the error about too many output arguments.
ALDO
el 31 de Oct. de 2018
Walter Roberson
el 31 de Oct. de 2018
That command would not give an error about too many output arguments -- not unless you had a function named filename() that did not have any output arguments.
ALDO
el 31 de Oct. de 2018
Walter Roberson
el 2 de Nov. de 2018
Please do not close Questions that have an answer.
Walter Roberson
el 2 de Nov. de 2018
What is Medi_oxygen_interval_program_updated ? It does not appear to be a character vector holding a file name.
ALDO
el 2 de Nov. de 2018
Editada: Walter Roberson
el 2 de Nov. de 2018
Walter Roberson
el 2 de Nov. de 2018
My guess is
load('Medi_oxygen_interval_program_updated.mat', 'AR10_start', 'AR60_start', 'AR120_start', 'AR180_start', 'AR300_start', 'SPO2_SF', 'AR10_end', 'AR60_end', 'AR120_end', 'AR180_end', 'AR300_end', 'SPO2_SF')
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!