creating GUI for my program

3 views (last 30 days)
santosh
santosh on 24 Mar 2011
Hi all, I m doing a project on plotting points and finding the surface area and i m done with it successfully but just wanted to know how to develop a GUI for my program. Any basic ideas please.

Accepted Answer

Matt Fig
Matt Fig on 25 Mar 2011
From your comment on Andrew's Answer, it seems that you found how to call your function by one pushbutton, but now need to store the data returned from your function. You can do this by using the GUIDATA function.
Once the data has been stored, you can use other pushbuttons to plot the data in different ways. For example, in the callback to the 'points' button, you retrieve the data (use GUIDATA again) then plot the points.
  1 Comment
sandeep
sandeep on 28 Mar 2011
Hi Matt,
I am also having bit similar question. I want to make a call back function which takes the input from an M file and plots the data.
For eg: I am defining different push buttons, one push button should take the input file and remaining two should take numbers. The other push buttons are to get the outputs. I am trying to link the M file to the callbacks so that I can get the outputs using the push buttons. I used similar technique by typing the name of M file.
Can you please tell me how can I use the data from M file so that I can call the data using callback functions.
Regards,

Sign in to comment.

More Answers (1)

Andrew Newell
Andrew Newell on 25 Mar 2011
You can find a list of resources for learning how to use GUIs at Steve's blog.
  1 Comment
santosh
santosh on 25 Mar 2011
Hi Andrew thanks for ur reference,I used a simple technique of typing my file name under the call back function and got the ouput but can u pls help me in finding one particular output instead of total output displayed at a time( my project finds particular plotted points, surface area and both are displayed in an excel sheet for give input voltages and time), In that I want to display seperately i.e when I press 'surface area' button it should display surface area and when I press 'points' button it should display the plotted points. pls help me

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!