Thanks, but how can I store a handle of an axes which I designed manually in a gui in a variable? I tried this:
% --- Executes during object creation, after setting all properties.
function axes5_CreateFcn(hObject, eventdata, axes5)
% hObject handle to axes5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
axes5=get(gcf,'CurrentAxes')
... but out of the funcion, I can't use the variable axes5. What am I doing wrong? Thanks!