You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: PIVlab_capture_OPTRONIS_synced_capture.m
    path of file: ./repos/PIVlab/PIVlab_capture_resources
    
    the code of the file until where you have to start completion: function [OutputError,OPTRONIS_vid] = PIVlab_ca
    
function HistWindow_CloseRequestFcn(hObject,~)
hgui=getappdata(0,'hgui');
setappdata(hgui,'hist_enabled',0);
try
    delete(hObject);
catch
    delete(gcf);
end