MATLAB: How to include a picture in .fig using GUIDE and no .m file

figureguideImage Processing Toolbox

The task is to include a picture in a .fig file using GUIDE, without using and generating the .m file (Tool –> GUIoption –> Generate FIG file only). It's clear I need to insert a Axes Box and using createFcn try to insert the picture. It seems that GUIDE does not recognise Matlab function like imshow('name.png').
Any ideas how to do it?

Best Answer

GUIDE recognizes imshow(). You just need to have an axes on the figure before you use it (I think, though it may create a new figure with an axes on it if you don't already have an axes). imshow() used to be part of the Image Processing Toolbox but in 2015 it moved into base MATLAB.