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!