Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MATLAB-无waitforbuttonpress的GINPUT函数_Matlab_User Interface_User Controls_Real Time Updates - Fatal编程技术网

MATLAB-无waitforbuttonpress的GINPUT函数

MATLAB-无waitforbuttonpress的GINPUT函数,matlab,user-interface,user-controls,real-time-updates,Matlab,User Interface,User Controls,Real Time Updates,我正在用MATLAB创建一个仿真GUI,使用figure/plot显示当前情况,并通过plot与之交互。我想让它像程序一样实时。所以它就像一个无限循环。我正在使用Ginput进行鼠标输入,但仍然想让程序在不等待单击的情况下运行。如何才能做到这一点?不,我不是在寻找多个调用,我是在寻找如何在不等待鼠标指针输入的情况下恢复代码。我想这就是你想要的。@Parag是的,我想你是对的。我把这个问题理解为想在没有点击的情况下获得分数,这需要时间,但目标实际上只是让GUI在等待点击的同时继续工作。因此,Win

我正在用MATLAB创建一个仿真GUI,使用figure/plot显示当前情况,并通过plot与之交互。我想让它像程序一样实时。所以它就像一个无限循环。我正在使用Ginput进行鼠标输入,但仍然想让程序在不等待单击的情况下运行。如何才能做到这一点?

不,我不是在寻找多个调用,我是在寻找如何在不等待鼠标指针输入的情况下恢复代码。我想这就是你想要的。@Parag是的,我想你是对的。我把这个问题理解为想在没有点击的情况下获得分数,这需要时间,但目标实际上只是让GUI在等待点击的同时继续工作。因此,
WindowButtonDownFcn
将是唯一的选择。打得好。谢谢你们,我会试试:)