Bounjour,
J'ai une interface graphique 'Guide', mon problème c'est que dans l'exécution d'un callback pour la première il m'affiche les différents images mais si j'exécute cette fonction une autre fois il me génére l'erreur suivante

??? Error using ==> axes
Invalid object handle

Error in ==> FenMethode5>aplly_Callback at 120
axes(axesFrameKey);

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> FenMethode5 at 43
gui_mainfcn(gui_State, varargin{:});

Error in ==>
@(hObject,eventdata)FenMethode5('aplly_Callback',hObject,eventdata,guidata(hObject))


??? Error while evaluating uicontrol Callback

c'est le code de mon callbackfunction
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
 
function aplly_Callback(hObject, eventdata, handles)
% hObject    handle to aplly (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
................................................................................
    %%
 
    axesFrameKey=findobj(gcf,'type','axes');
    axes(axesFrameKey);
    set(gca,'NextPlot','replacechildren')
    axis off;
 
    [h,w]=size(KeyFrame);
    pilot=ceil(w/4);
        for i=1:w
        Im=mov(1,KeyFrame(i)).cdata(:,:,:);
        subplot(pilot,4,i),imshow(Im),title(i);
        hold on;
    end
j'ai fait le debug et toujours il s'arrête au niveau 'axes(axesFrameKey);'.
Y'a t'il quelqu'un qui peut m'aider à resoudre ce problème merci beaucoup.