Programmed GUI help: Storing and using values

1 view (last 30 days)
I am making a calculator and am trying to use a GUI. I have a working function that calculates the values properly using a normal function input method. What I want to do is use a GUI to input the data rather than typing it in manually. Then output that data in text boxes within the GUI. What I am having trouble with is taking data from the inputs and combining them into one calculating function, and then reporting the calculated values. I have been told that the guidata() function should help but I cannot seem to get that function to work in my program. If anyone is interested I have my scripts that I can send to them (the working 'traditional style' script, and the not yet working GUI script that I am trying to incorporate the calculations into). Thank you for looking at this.
  3 Comments
Gregory
Gregory on 29 Jun 2014
The inputs would be something like selecting values from popup boxes and entering data into text boxes, then I need to take the inputted data from those inputs and do calculations with the information. From those calculations I would get results, and then I need to output those results into the GUI in text boxes.
My issue right now is getting values to save and transfer from one callback function and be usable in another.
Basically, right now I can get the data in and report back that data into the GUI. But if I try to combine two or more of the inputs the entire thing stops working.
That was probably a convoluted way of saying yes, I don't necessarily need a "calculate" button, the calculations could be done in real time as you select the boxes. But if a calculate button makes the programming and data transferring between functions easier then that works just fine.
Joakim Magnusson
Joakim Magnusson on 30 Jun 2014
Can you post an example of how you retrive your data and what you try to do with the data? And what errors do you get?

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!