Executing the script file in GUI Callback
Show older comments
Hello, I have to create a GUI where inputs are given into two text boxes and a graph is plotted for the corresponding inputs. Further upon pressing one more push button, I want the GUI to run the program from a script file and then return the output back to the GUI in the form of a table. The script file has a program of about 300 lines and hence I do not want to write the entire program under the callback. I am relatively new to Matlab and have no experience with using GUIDE. If any example GUI is available for reference, then it will be of great help. Thanks in advance.
Answers (1)
Jan
on 8 Mar 2016
1 vote
There is not difference between writing the code directly into the callback or to a script file. The script file is processed exactly as it would be inserted in the calling code.
So what exactly is your question? What do you mean by "table"? A uitable, a matrix or a table obejct? Perhaps an Excel-Sheet or file?
1 Comment
Vineeth Bharadwaj P
on 8 Mar 2016
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!