MATLAB: “imshow” function in GUI so slow

axesguiimshow

I have a GUI program which shows 10 images using "axes(handles.axes1);" and "imshow(f);" function. But when I run it, the 10 images appear sequentially but not at the same time. There's a delay between each image showing. What's wrong within it?

Best Answer

If you must use imshow(), then skip the axes() call and use
imshow(f, 'Parent', handles.axes1);
However, if you do not need imshow() specifically (e.g., you do not need the tools that it adds), then use
imagesc(f, 'Parent', handles.axes1);