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!