MATLAB: How to use imshow in a panel

app designerfigureimageImage Processing Toolboximshowpanelshow

I'm using App Designar, I have this interface with a Panel
Sin título.png
When you push in the bottom, starts a function that show an image and then update the image painting things, then another image, then update it…
This is the code:
frameRGB = read(vidReader,i);
frameGray = rgb2gray(frameRGB);
flow = estimateFlow(opticFlow,frameGray);
figure(1);imshow(frameRGB);impixelinfo
hold on
I need to show this image and their subsequent updates in the panel and not in the figure. The panel is app.myPanel

Best Answer

I solved this turning the panel into an axe and then:
line([0,N],[500,550],'LineWidth',3,'Color','#7E2F8E', 'Parent', panel);