creating GUI for my program

3 次查看(过去 30 天)
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.

采纳的回答

Matt Fig
Matt Fig 2011-3-25
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 个评论
sandeep
sandeep 2011-3-28
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,

请先登录,再进行评论。

更多回答(1 个)

Andrew Newell
Andrew Newell 2011-3-25
You can find a list of resources for learning how to use GUIs at Steve's blog.
  1 个评论
santosh
santosh 2011-3-25
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by