How to create a GUI?

8 views (last 30 days)
Daniele Morello
Daniele Morello on 1 Sep 2015
Commented: Image Analyst on 1 Sep 2015
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 Comments
Daniele Morello
Daniele Morello on 1 Sep 2015
Edited: Daniele Morello on 1 Sep 2015
i do apologize, i'm searching for some topic on internet, but i can't understand well. my problem is: i have an excel file called "main.xls" and i would show the same content into an uitable in GUI. i need someone that explain me how to do, step by step (only) the code that i need.
shannon stoffel
shannon stoffel on 1 Sep 2015
Edited: shannon stoffel on 1 Sep 2015
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.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 1 Sep 2015
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 Comment
Image Analyst
Image Analyst on 1 Sep 2015
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.

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!