how to programmatically make a GUI
显示 更早的评论
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 个评论
Kevin Chng
2018-10-31
Read AppDesigner or Guide.
In Your MATLAB Command window, type
>>appdesigner
or
>>guide
Stephen23
2018-10-31
"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
2018-10-31
Walter Roberson
2018-10-31
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
2018-10-31
"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
2018-10-31
ALDO
2018-10-31
编辑:Walter Roberson
2018-10-31
Walter Roberson
2018-10-31
Please show the exact load() line that you are using, the one that is giving the error about too many output arguments.
ALDO
2018-10-31
Walter Roberson
2018-10-31
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
2018-10-31
Walter Roberson
2018-11-2
Please do not close Questions that have an answer.
Walter Roberson
2018-11-2
What is Medi_oxygen_interval_program_updated ? It does not appear to be a character vector holding a file name.
ALDO
2018-11-2
编辑:Walter Roberson
2018-11-2
Walter Roberson
2018-11-2
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')
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!