Clear Filters
Clear Filters

Display image in axis

1 view (last 30 days)
asma khaled
asma khaled on 16 Feb 2019
Commented: Rik on 16 Feb 2019
I have a problem when I execute a figure that has an axis to display the image it works but when displayed this figure by push button from another figure, this figure does not display the image in the axis and show this errors
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Testing__phase('Selectimg_button_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
Struct contents reference from a non-struct array object.
Error in Testing__phase>Selectimg_button_Callback (line 108)
axes (handles.axes_img);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Testing__phase (line 42)
gui_mainfcn(gui_State, varargin{:});
  1 Comment
Rik
Rik on 16 Feb 2019
Please attach you GUI code as a file to your question. It looks like your guidata struct has been modified or has not properly been initialized.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!