I have written a GUI, titled ComplianceGUI, that can display live video, record from the live video, replay videos, and analyze the video with binary conversion based on the suggestions found in this forum answer: GUI live video tutorial. I wrote this code on my personal laptop, which has an i5 processor, but it is to be used on a laptop with a two-core processor. Although the code worked perfectly on my own computer, the code will sometimes run into a strange error on the two-core laptop it is to be used on (along with my older laptop which is also two-core):
_Undefined function 'ComplianceGUI' for input arguments of type 'struct'.
Error in @(hObject,eventdata)ComplianceGUI('captureVideo_Callback',hObject,eventdata,guidata(hObject))
Error using waitfor
Error while evaluating uicontrol Callback_
I have not been able to find a solution to this problem because I have no idea why it only sometimes appears and why it does not appear on my personal laptop. I assume that it has to do with Matlab data management since the error message seems to suggest that the program forgets that it is called ComplianceGUI, but I have no idea where to begin fixing it. If it does appear, it seems to do so when a second button is pressed after running a first task such as recording video or analyzing video. I have attached my full code. Any insight or help would be appreciated.
EDIT: Attached the figure file too