creating GUI for my program

3 Ansichten (letzte 30 Tage)
santosh
santosh am 24 Mär. 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.

Akzeptierte Antwort

Matt Fig
Matt Fig am 25 Mär. 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 Kommentar
sandeep
sandeep am 28 Mär. 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,

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Andrew Newell
Andrew Newell am 25 Mär. 2011
You can find a list of resources for learning how to use GUIs at Steve's blog.
  1 Kommentar
santosh
santosh am 25 Mär. 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by