Refresh Data under time interval
11 次查看(过去 30 天)
显示 更早的评论
I cannot get this code to run while under this time interval.
I want it so, when a button is pressed, the data will refresh and give me a different output than before
ex.
If time interval is less than half a second, then run code
else
if time interval is greater than half a second, run alternate code
function bool = CheckSlap(hObject, eventdata, handles)
bool = 0;
tic
while toc < 0.5
refreshdata(handles.slap);
if handles.slap == 1
bool = 1;
break;
end
end
end
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!