Output from programmatic GUI
显示 更早的评论
Hi,
I have a function that creates a dynamic, programmatic GUI. This function is called from the callback of a GUIDE GUI, and I would like for it (the function) to output a matrix to this callback when a pushbutton is clicked w/in the programmatic GUI.
I am having problems setting the output of this function. The output is set w/in the callback of the pushbutton, but I do not know how to set it w/in the main function. I have tried defining the output in the main function and setting it w/in a nested function. However, I receive this error: Attempt to add "___________" to a static workspace. See MATLAB Programming, Restrictions on Assigning to Variables for details._
Is there a way for me to work around this error or another way to return the output value to the main function?
Thanks.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!