I need to insert a small image into a GUI. Since using an axes (in this case tagged as axes2) seemed the likely option so I used one and added the following code into the OpeningFcn.
matlabImage = imread('logo.tif');
I am unfortunately getting the following error.
Error using image
Image CData must be an m-by-n-by-3 or m-by-n matrix.
Error in GUI_for_log>GUI_for_log_OpeningFcn (line 55)
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, , guidata(gui_hFigure),
Error in GUI_for_log (line 42)
Is there some form of tweaking I need to do to the image before using it?