Dear all, I couldn't run this code in MATLAB2015b, but it was working well before
uicontrol('Style', 'pushbutton', 'String', 'SAVE',...
'Position', [20 20 50 20],...
function yourCallback(ObjH, EventData)
I = getimage;
setappdata(0, 'I', I);
Error:Function with duplicate name "yourCallback" cannot be defined.
Does anyone knows how to make it work again for MATLAB2015b?