How to pass a value to a function which is external to GUI?
3 views (last 30 days)
Show older comments
I have designed a program to calculate values and display graphs using multiple functions and global variables. the code works very fine. Now i want to add a GUI to make it more user friendly but cannot pass values and strings into the functions that are external to the GUI. Am using a pushbotton to invoke the function and pass values to it.
My Push button callback looks like this:
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Any method on how to go by this?
0 Comments
Answers (1)
Walter Roberson
on 25 Jan 2014
What constraints are blocking passing values in to the external functions? Do the external functions not take parameters ?
4 Comments
See Also
Categories
Find more on Event Functions 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!