function [] = updateMenuButtons() %ENABLEMENUBUTTONS Summary of this function goes here % Detailed explanation goes here global artoaGui artoaDataInput; %% Update menu buttons if isfield(artoaDataInput, 'rfb') && ~islogical(artoaDataInput.rfb) artoaGui.main.menus.edit.Enable = 'on'; artoaGui.main.menus.track.Enable = 'on'; else artoaGui.main.menus.edit.Enable = 'off'; artoaGui.main.menus.track.Enable = 'off'; end end