How to create a GUI?

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

Stephen23
Stephen23 on 1 Sep 2015
Edited: Stephen23 on 1 Sep 2015
What kind of help do you want:
  • 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?
What you described is quite a large project, and it will not be built in one day. But then again, neither was Rome. The internet is however full of advice of writing MATLAB GUI's, including the official documentation (which is very easy to find using any internet search engine) and thousands of answers on this forum (did you read any of them?). You can also find MATLAB tutorials and lots of examples all over the internet (did you try adapting any of the examples?).
We can help you if you have specific code problems or to explain how something can be done efficiently. However this is not a free tutorial service for you (there are plenty of MATLAB tutorials on the internet), nor do we write endless code for people (we are volunteers).
You will have to read the documentation, understand the task, research your options and choices, learn how to implement and make those options work, and write code yourself. It won't be easy, because learning something new is not easy... but it will be interesting, and you will gain new skills along the way.
Good luck!
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

0 votes

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

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.

Asked:

on 1 Sep 2015

Commented:

on 1 Sep 2015

Community Treasure Hunt

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

Start Hunting!