- Someone to write your code for you?
- Someone to show you where the documentation is?
- Someone to give you their complete GUI?
- Someone to magically make writing code so simple that you don't actually need to do any work, or learn anything new?
How to create a GUI?
5 次查看(过去 30 天)
显示 更早的评论
hello everyone, i need your help. I have to create a GUI that reads data from excel. I need to: -show those data into GUI window; -edit those data from GUI window (not in excel), and save those modifications; -plot some of columns into a graphic.
3 个评论
shannon stoffel
2015-9-1
编辑:shannon stoffel
2015-9-1
I was new to GUI about a week ago. It might be helpful to break it up. The first thing you need to do is open the excel sheet. Look that up first. Just google how to open .xls in matlab. OR there are a lot of videos for beginners for GUI. Maybe watch one first. Matlab Answers is more for specific questions about a type of code that cannot be googled.
回答(1 个)
Image Analyst
2015-9-1
This is a nice GUI template to start with. http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
Description: This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can......
It uses xlswrite() but you can just change it to use xlsread() if you want to.
1 个评论
Image Analyst
2015-9-1
Basically you do something like this to send your Excel data to a grid control on your GUI that you made with GUIDE:
myData = xlsread(fullFileName);
set(handles.uitable1, 'Data', myData);
It can get a little more complicated but if you have just a simple 2D table of numbers in Excel, and a grid control on your GUI with a "tag" property of uitable1 (in other words, the ID/name of the control is uitable1), then this should work.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!